using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using C1.Win.C1Input;
using C1.Win.C1List;
using C1.Win.C1TrueDBGrid;
using PCSComMaterials.Plan.BO;
using PCSComMaterials.Plan.DS;
using PCSComUtils.Common;
using PCSComUtils.Common.BO;
using PCSComUtils.PCSExc;
using PCSUtils.Log;
using PCSUtils.Utils;
using AlignHorzEnum = C1.Win.C1TrueDBGrid.AlignHorzEnum;
using BeforeColUpdateEventArgs = C1.Win.C1TrueDBGrid.BeforeColUpdateEventArgs;
using CancelEventArgs = System.ComponentModel.CancelEventArgs;
using ColEventArgs = C1.Win.C1TrueDBGrid.ColEventArgs;
using PresentationEnum = C1.Win.C1TrueDBGrid.PresentationEnum;

namespace PCSMaterials.Mrp
{
	/// <summary>
	/// Summary description for MPRCycleOption.
	/// </summary>
	public class MRPCycleOption : Form
	{
		private Label label1;
		private Button btnEdit;
		private Button btnDelete;
		private Button btnSave;
		private Button btnAdd;
		private Button btnClose;
		private Button btnHelp;
		private Button btnPrint;
		private C1TrueDBGrid dgrdData;
		private TextBox txtCycleDecription;
		private Label lblCycle;
		private Label lblGenDate;
		private Label lblCycleDesc;
		private Label lblMPSCycle;
		private Button btnCycleSearch;
		private TextBox txtCycle;
		private Button btnMPSCycleSearch;
		private TextBox txtMPSCycle;
		private DataSet dstGridData;
		private DataTable dtbGridLayOut;
		private const string MASTERLOCATIONCODE = "MasterLocationCode";
		private const string MPSCYCLEOPTION = "MPSCycleOption";
		private const string REQUEST_WO_QTITY_FLD = "requestWOQtity";
		private const string REPLENISH_PO_QTITY_FLD = "ReplenishItemQtity";
		const string THIS = "PCSMaterials.Mrp.MRPCycleOption";
		EnumAction formMode;
		UtilsBO boUtil = new UtilsBO();
		private bool blnHasError = false;
		private int pintCycleOptionMasterID = 0;
		private string strCycleText = string.Empty;
		private int CCNID;
		private C1Combo cboCCN;
		private C1DateEdit dtmFromDate;
		private Label lblToDate;
		private Label lblFromDate;
		private C1DateEdit dtmToDate;
		DateTime dtmDateOnly;
		DateTime dtmSpecialDate = new DateTime(2005, 1, 1);
		private C1NumericEdit txtPlanHorizon;
		private Label lblPlanHorizon;
		private TextBox txtMPSDescription;
		private C1DateEdit txtGenDateTime;
		private Button btnProcess;
		private GroupBox grpCheck;
		private CheckBox chkReturnToVendor;
		private C1NumericEdit txtNumbersOfDays;
		private Label lblNumbersOfDays;
		private CheckBox chkPONotReceipt;
		private Button btnUpdate;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private Container components = null;
	
		public MRPCycleOption()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();
	
			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		public MRPCycleOption(int pintMRPMasterID, int pintCCNID, string pstrCycleText)
		{
			InitializeComponent();
			pintCycleOptionMasterID = pintMRPMasterID;
			CCNID = pintCCNID;
			strCycleText = pstrCycleText;
		}
	
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}
	
		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MRPCycleOption));
			this.btnEdit = new System.Windows.Forms.Button();
			this.btnDelete = new System.Windows.Forms.Button();
			this.btnSave = new System.Windows.Forms.Button();
			this.btnAdd = new System.Windows.Forms.Button();
			this.btnClose = new System.Windows.Forms.Button();
			this.btnHelp = new System.Windows.Forms.Button();
			this.btnPrint = new System.Windows.Forms.Button();
			this.dgrdData = new C1.Win.C1TrueDBGrid.C1TrueDBGrid();
			this.label1 = new System.Windows.Forms.Label();
			this.txtCycleDecription = new System.Windows.Forms.TextBox();
			this.lblCycleDesc = new System.Windows.Forms.Label();
			this.lblCycle = new System.Windows.Forms.Label();
			this.lblGenDate = new System.Windows.Forms.Label();
			this.lblToDate = new System.Windows.Forms.Label();
			this.lblFromDate = new System.Windows.Forms.Label();
			this.lblMPSCycle = new System.Windows.Forms.Label();
			this.btnCycleSearch = new System.Windows.Forms.Button();
			this.txtCycle = new System.Windows.Forms.TextBox();
			this.btnMPSCycleSearch = new System.Windows.Forms.Button();
			this.txtMPSCycle = new System.Windows.Forms.TextBox();
			this.cboCCN = new C1.Win.C1List.C1Combo();
			this.dtmFromDate = new C1.Win.C1Input.C1DateEdit();
			this.dtmToDate = new C1.Win.C1Input.C1DateEdit();
			this.txtPlanHorizon = new C1.Win.C1Input.C1NumericEdit();
			this.lblPlanHorizon = new System.Windows.Forms.Label();
			this.txtMPSDescription = new System.Windows.Forms.TextBox();
			this.txtGenDateTime = new C1.Win.C1Input.C1DateEdit();
			this.btnProcess = new System.Windows.Forms.Button();
			this.grpCheck = new System.Windows.Forms.GroupBox();
			this.lblNumbersOfDays = new System.Windows.Forms.Label();
			this.txtNumbersOfDays = new C1.Win.C1Input.C1NumericEdit();
			this.chkReturnToVendor = new System.Windows.Forms.CheckBox();
			this.chkPONotReceipt = new System.Windows.Forms.CheckBox();
			this.btnUpdate = new System.Windows.Forms.Button();
			((System.ComponentModel.ISupportInitialize)(this.dgrdData)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.cboCCN)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmFromDate)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmToDate)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtPlanHorizon)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtGenDateTime)).BeginInit();
			this.grpCheck.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.txtNumbersOfDays)).BeginInit();
			this.SuspendLayout();
			// 
			// btnEdit
			// 
			this.btnEdit.AccessibleDescription = resources.GetString("btnEdit.AccessibleDescription");
			this.btnEdit.AccessibleName = resources.GetString("btnEdit.AccessibleName");
			this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnEdit.Anchor")));
			this.btnEdit.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnEdit.BackgroundImage")));
			this.btnEdit.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnEdit.Dock")));
			this.btnEdit.Enabled = ((bool)(resources.GetObject("btnEdit.Enabled")));
			this.btnEdit.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnEdit.FlatStyle")));
			this.btnEdit.Font = ((System.Drawing.Font)(resources.GetObject("btnEdit.Font")));
			this.btnEdit.Image = ((System.Drawing.Image)(resources.GetObject("btnEdit.Image")));
			this.btnEdit.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnEdit.ImageAlign")));
			this.btnEdit.ImageIndex = ((int)(resources.GetObject("btnEdit.ImageIndex")));
			this.btnEdit.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnEdit.ImeMode")));
			this.btnEdit.Location = ((System.Drawing.Point)(resources.GetObject("btnEdit.Location")));
			this.btnEdit.Name = "btnEdit";
			this.btnEdit.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnEdit.RightToLeft")));
			this.btnEdit.Size = ((System.Drawing.Size)(resources.GetObject("btnEdit.Size")));
			this.btnEdit.TabIndex = ((int)(resources.GetObject("btnEdit.TabIndex")));
			this.btnEdit.Text = resources.GetString("btnEdit.Text");
			this.btnEdit.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnEdit.TextAlign")));
			this.btnEdit.Visible = ((bool)(resources.GetObject("btnEdit.Visible")));
			this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
			// 
			// btnDelete
			// 
			this.btnDelete.AccessibleDescription = resources.GetString("btnDelete.AccessibleDescription");
			this.btnDelete.AccessibleName = resources.GetString("btnDelete.AccessibleName");
			this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnDelete.Anchor")));
			this.btnDelete.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnDelete.BackgroundImage")));
			this.btnDelete.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnDelete.Dock")));
			this.btnDelete.Enabled = ((bool)(resources.GetObject("btnDelete.Enabled")));
			this.btnDelete.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnDelete.FlatStyle")));
			this.btnDelete.Font = ((System.Drawing.Font)(resources.GetObject("btnDelete.Font")));
			this.btnDelete.Image = ((System.Drawing.Image)(resources.GetObject("btnDelete.Image")));
			this.btnDelete.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnDelete.ImageAlign")));
			this.btnDelete.ImageIndex = ((int)(resources.GetObject("btnDelete.ImageIndex")));
			this.btnDelete.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnDelete.ImeMode")));
			this.btnDelete.Location = ((System.Drawing.Point)(resources.GetObject("btnDelete.Location")));
			this.btnDelete.Name = "btnDelete";
			this.btnDelete.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnDelete.RightToLeft")));
			this.btnDelete.Size = ((System.Drawing.Size)(resources.GetObject("btnDelete.Size")));
			this.btnDelete.TabIndex = ((int)(resources.GetObject("btnDelete.TabIndex")));
			this.btnDelete.Text = resources.GetString("btnDelete.Text");
			this.btnDelete.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnDelete.TextAlign")));
			this.btnDelete.Visible = ((bool)(resources.GetObject("btnDelete.Visible")));
			this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
			// 
			// btnSave
			// 
			this.btnSave.AccessibleDescription = resources.GetString("btnSave.AccessibleDescription");
			this.btnSave.AccessibleName = resources.GetString("btnSave.AccessibleName");
			this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnSave.Anchor")));
			this.btnSave.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSave.BackgroundImage")));
			this.btnSave.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnSave.Dock")));
			this.btnSave.Enabled = ((bool)(resources.GetObject("btnSave.Enabled")));
			this.btnSave.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnSave.FlatStyle")));
			this.btnSave.Font = ((System.Drawing.Font)(resources.GetObject("btnSave.Font")));
			this.btnSave.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.Image")));
			this.btnSave.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSave.ImageAlign")));
			this.btnSave.ImageIndex = ((int)(resources.GetObject("btnSave.ImageIndex")));
			this.btnSave.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnSave.ImeMode")));
			this.btnSave.Location = ((System.Drawing.Point)(resources.GetObject("btnSave.Location")));
			this.btnSave.Name = "btnSave";
			this.btnSave.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnSave.RightToLeft")));
			this.btnSave.Size = ((System.Drawing.Size)(resources.GetObject("btnSave.Size")));
			this.btnSave.TabIndex = ((int)(resources.GetObject("btnSave.TabIndex")));
			this.btnSave.Text = resources.GetString("btnSave.Text");
			this.btnSave.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSave.TextAlign")));
			this.btnSave.Visible = ((bool)(resources.GetObject("btnSave.Visible")));
			this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
			// 
			// btnAdd
			// 
			this.btnAdd.AccessibleDescription = resources.GetString("btnAdd.AccessibleDescription");
			this.btnAdd.AccessibleName = resources.GetString("btnAdd.AccessibleName");
			this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnAdd.Anchor")));
			this.btnAdd.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnAdd.BackgroundImage")));
			this.btnAdd.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnAdd.Dock")));
			this.btnAdd.Enabled = ((bool)(resources.GetObject("btnAdd.Enabled")));
			this.btnAdd.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnAdd.FlatStyle")));
			this.btnAdd.Font = ((System.Drawing.Font)(resources.GetObject("btnAdd.Font")));
			this.btnAdd.Image = ((System.Drawing.Image)(resources.GetObject("btnAdd.Image")));
			this.btnAdd.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnAdd.ImageAlign")));
			this.btnAdd.ImageIndex = ((int)(resources.GetObject("btnAdd.ImageIndex")));
			this.btnAdd.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnAdd.ImeMode")));
			this.btnAdd.Location = ((System.Drawing.Point)(resources.GetObject("btnAdd.Location")));
			this.btnAdd.Name = "btnAdd";
			this.btnAdd.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnAdd.RightToLeft")));
			this.btnAdd.Size = ((System.Drawing.Size)(resources.GetObject("btnAdd.Size")));
			this.btnAdd.TabIndex = ((int)(resources.GetObject("btnAdd.TabIndex")));
			this.btnAdd.Text = resources.GetString("btnAdd.Text");
			this.btnAdd.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnAdd.TextAlign")));
			this.btnAdd.Visible = ((bool)(resources.GetObject("btnAdd.Visible")));
			this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
			// 
			// btnClose
			// 
			this.btnClose.AccessibleDescription = resources.GetString("btnClose.AccessibleDescription");
			this.btnClose.AccessibleName = resources.GetString("btnClose.AccessibleName");
			this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnClose.Anchor")));
			this.btnClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClose.BackgroundImage")));
			this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnClose.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnClose.Dock")));
			this.btnClose.Enabled = ((bool)(resources.GetObject("btnClose.Enabled")));
			this.btnClose.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnClose.FlatStyle")));
			this.btnClose.Font = ((System.Drawing.Font)(resources.GetObject("btnClose.Font")));
			this.btnClose.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.Image")));
			this.btnClose.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.ImageAlign")));
			this.btnClose.ImageIndex = ((int)(resources.GetObject("btnClose.ImageIndex")));
			this.btnClose.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnClose.ImeMode")));
			this.btnClose.Location = ((System.Drawing.Point)(resources.GetObject("btnClose.Location")));
			this.btnClose.Name = "btnClose";
			this.btnClose.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnClose.RightToLeft")));
			this.btnClose.Size = ((System.Drawing.Size)(resources.GetObject("btnClose.Size")));
			this.btnClose.TabIndex = ((int)(resources.GetObject("btnClose.TabIndex")));
			this.btnClose.Text = resources.GetString("btnClose.Text");
			this.btnClose.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.TextAlign")));
			this.btnClose.Visible = ((bool)(resources.GetObject("btnClose.Visible")));
			this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
			// 
			// btnHelp
			// 
			this.btnHelp.AccessibleDescription = resources.GetString("btnHelp.AccessibleDescription");
			this.btnHelp.AccessibleName = resources.GetString("btnHelp.AccessibleName");
			this.btnHelp.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnHelp.Anchor")));
			this.btnHelp.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnHelp.BackgroundImage")));
			this.btnHelp.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnHelp.Dock")));
			this.btnHelp.Enabled = ((bool)(resources.GetObject("btnHelp.Enabled")));
			this.btnHelp.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnHelp.FlatStyle")));
			this.btnHelp.Font = ((System.Drawing.Font)(resources.GetObject("btnHelp.Font")));
			this.btnHelp.Image = ((System.Drawing.Image)(resources.GetObject("btnHelp.Image")));
			this.btnHelp.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.ImageAlign")));
			this.btnHelp.ImageIndex = ((int)(resources.GetObject("btnHelp.ImageIndex")));
			this.btnHelp.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnHelp.ImeMode")));
			this.btnHelp.Location = ((System.Drawing.Point)(resources.GetObject("btnHelp.Location")));
			this.btnHelp.Name = "btnHelp";
			this.btnHelp.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnHelp.RightToLeft")));
			this.btnHelp.Size = ((System.Drawing.Size)(resources.GetObject("btnHelp.Size")));
			this.btnHelp.TabIndex = ((int)(resources.GetObject("btnHelp.TabIndex")));
			this.btnHelp.Text = resources.GetString("btnHelp.Text");
			this.btnHelp.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.TextAlign")));
			this.btnHelp.Visible = ((bool)(resources.GetObject("btnHelp.Visible")));
			this.btnHelp.Click += new System.EventHandler(this.btnHelp_Click);
			// 
			// btnPrint
			// 
			this.btnPrint.AccessibleDescription = resources.GetString("btnPrint.AccessibleDescription");
			this.btnPrint.AccessibleName = resources.GetString("btnPrint.AccessibleName");
			this.btnPrint.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnPrint.Anchor")));
			this.btnPrint.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnPrint.BackgroundImage")));
			this.btnPrint.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnPrint.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnPrint.Dock")));
			this.btnPrint.Enabled = ((bool)(resources.GetObject("btnPrint.Enabled")));
			this.btnPrint.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnPrint.FlatStyle")));
			this.btnPrint.Font = ((System.Drawing.Font)(resources.GetObject("btnPrint.Font")));
			this.btnPrint.Image = ((System.Drawing.Image)(resources.GetObject("btnPrint.Image")));
			this.btnPrint.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnPrint.ImageAlign")));
			this.btnPrint.ImageIndex = ((int)(resources.GetObject("btnPrint.ImageIndex")));
			this.btnPrint.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnPrint.ImeMode")));
			this.btnPrint.Location = ((System.Drawing.Point)(resources.GetObject("btnPrint.Location")));
			this.btnPrint.Name = "btnPrint";
			this.btnPrint.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnPrint.RightToLeft")));
			this.btnPrint.Size = ((System.Drawing.Size)(resources.GetObject("btnPrint.Size")));
			this.btnPrint.TabIndex = ((int)(resources.GetObject("btnPrint.TabIndex")));
			this.btnPrint.Text = resources.GetString("btnPrint.Text");
			this.btnPrint.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnPrint.TextAlign")));
			this.btnPrint.Visible = ((bool)(resources.GetObject("btnPrint.Visible")));
			this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click);
			// 
			// dgrdData
			// 
			this.dgrdData.AccessibleDescription = resources.GetString("dgrdData.AccessibleDescription");
			this.dgrdData.AccessibleName = resources.GetString("dgrdData.AccessibleName");
			this.dgrdData.AllowAddNew = ((bool)(resources.GetObject("dgrdData.AllowAddNew")));
			this.dgrdData.AllowArrows = ((bool)(resources.GetObject("dgrdData.AllowArrows")));
			this.dgrdData.AllowColMove = ((bool)(resources.GetObject("dgrdData.AllowColMove")));
			this.dgrdData.AllowColSelect = ((bool)(resources.GetObject("dgrdData.AllowColSelect")));
			this.dgrdData.AllowDelete = ((bool)(resources.GetObject("dgrdData.AllowDelete")));
			this.dgrdData.AllowDrag = ((bool)(resources.GetObject("dgrdData.AllowDrag")));
			this.dgrdData.AllowFilter = ((bool)(resources.GetObject("dgrdData.AllowFilter")));
			this.dgrdData.AllowHorizontalSplit = ((bool)(resources.GetObject("dgrdData.AllowHorizontalSplit")));
			this.dgrdData.AllowRowSelect = ((bool)(resources.GetObject("dgrdData.AllowRowSelect")));
			this.dgrdData.AllowSort = ((bool)(resources.GetObject("dgrdData.AllowSort")));
			this.dgrdData.AllowUpdate = ((bool)(resources.GetObject("dgrdData.AllowUpdate")));
			this.dgrdData.AllowUpdateOnBlur = ((bool)(resources.GetObject("dgrdData.AllowUpdateOnBlur")));
			this.dgrdData.AllowVerticalSplit = ((bool)(resources.GetObject("dgrdData.AllowVerticalSplit")));
			this.dgrdData.AlternatingRows = ((bool)(resources.GetObject("dgrdData.AlternatingRows")));
			this.dgrdData.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dgrdData.Anchor")));
			this.dgrdData.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dgrdData.BackgroundImage")));
			this.dgrdData.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dgrdData.BorderStyle")));
			this.dgrdData.Caption = resources.GetString("dgrdData.Caption");
			this.dgrdData.CaptionHeight = ((int)(resources.GetObject("dgrdData.CaptionHeight")));
			this.dgrdData.CellTipsDelay = ((int)(resources.GetObject("dgrdData.CellTipsDelay")));
			this.dgrdData.CellTipsWidth = ((int)(resources.GetObject("dgrdData.CellTipsWidth")));
			this.dgrdData.ChildGrid = ((C1.Win.C1TrueDBGrid.C1TrueDBGrid)(resources.GetObject("dgrdData.ChildGrid")));
			this.dgrdData.CollapseColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.CollapseColor")));
			this.dgrdData.ColumnFooters = ((bool)(resources.GetObject("dgrdData.ColumnFooters")));
			this.dgrdData.ColumnHeaders = ((bool)(resources.GetObject("dgrdData.ColumnHeaders")));
			this.dgrdData.DefColWidth = ((int)(resources.GetObject("dgrdData.DefColWidth")));
			this.dgrdData.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dgrdData.Dock")));
			this.dgrdData.EditDropDown = ((bool)(resources.GetObject("dgrdData.EditDropDown")));
			this.dgrdData.EmptyRows = ((bool)(resources.GetObject("dgrdData.EmptyRows")));
			this.dgrdData.Enabled = ((bool)(resources.GetObject("dgrdData.Enabled")));
			this.dgrdData.ExpandColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.ExpandColor")));
			this.dgrdData.ExposeCellMode = ((C1.Win.C1TrueDBGrid.ExposeCellModeEnum)(resources.GetObject("dgrdData.ExposeCellMode")));
			this.dgrdData.ExtendRightColumn = ((bool)(resources.GetObject("dgrdData.ExtendRightColumn")));
			this.dgrdData.FetchRowStyles = ((bool)(resources.GetObject("dgrdData.FetchRowStyles")));
			this.dgrdData.FilterBar = ((bool)(resources.GetObject("dgrdData.FilterBar")));
			this.dgrdData.FlatStyle = ((C1.Win.C1TrueDBGrid.FlatModeEnum)(resources.GetObject("dgrdData.FlatStyle")));
			this.dgrdData.Font = ((System.Drawing.Font)(resources.GetObject("dgrdData.Font")));
			this.dgrdData.GroupByAreaVisible = ((bool)(resources.GetObject("dgrdData.GroupByAreaVisible")));
			this.dgrdData.GroupByCaption = resources.GetString("dgrdData.GroupByCaption");
			this.dgrdData.Images.Add(((System.Drawing.Image)(resources.GetObject("resource"))));
			this.dgrdData.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dgrdData.ImeMode")));
			this.dgrdData.LinesPerRow = ((int)(resources.GetObject("dgrdData.LinesPerRow")));
			this.dgrdData.Location = ((System.Drawing.Point)(resources.GetObject("dgrdData.Location")));
			this.dgrdData.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.DottedCellBorder;
			this.dgrdData.Name = "dgrdData";
			this.dgrdData.PictureAddnewRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureAddnewRow")));
			this.dgrdData.PictureCurrentRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureCurrentRow")));
			this.dgrdData.PictureFilterBar = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureFilterBar")));
			this.dgrdData.PictureFooterRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureFooterRow")));
			this.dgrdData.PictureHeaderRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureHeaderRow")));
			this.dgrdData.PictureModifiedRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureModifiedRow")));
			this.dgrdData.PictureStandardRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureStandardRow")));
			this.dgrdData.PreviewInfo.AllowSizing = ((bool)(resources.GetObject("dgrdData.PreviewInfo.AllowSizing")));
			this.dgrdData.PreviewInfo.Caption = resources.GetString("dgrdData.PreviewInfo.Caption");
			this.dgrdData.PreviewInfo.Location = ((System.Drawing.Point)(resources.GetObject("dgrdData.PreviewInfo.Location")));
			this.dgrdData.PreviewInfo.Size = ((System.Drawing.Size)(resources.GetObject("dgrdData.PreviewInfo.Size")));
			this.dgrdData.PreviewInfo.ToolBars = ((bool)(resources.GetObject("dgrdData.PreviewInfo.ToolBars")));
			this.dgrdData.PreviewInfo.UIStrings.Content = ((string[])(resources.GetObject("dgrdData.PreviewInfo.UIStrings.Content")));
			this.dgrdData.PreviewInfo.ZoomFactor = ((System.Double)(resources.GetObject("dgrdData.PreviewInfo.ZoomFactor")));
			this.dgrdData.PrintInfo.MaxRowHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.MaxRowHeight")));
			this.dgrdData.PrintInfo.OwnerDrawPageFooter = ((bool)(resources.GetObject("dgrdData.PrintInfo.OwnerDrawPageFooter")));
			this.dgrdData.PrintInfo.OwnerDrawPageHeader = ((bool)(resources.GetObject("dgrdData.PrintInfo.OwnerDrawPageHeader")));
			this.dgrdData.PrintInfo.PageFooter = resources.GetString("dgrdData.PrintInfo.PageFooter");
			this.dgrdData.PrintInfo.PageFooterHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.PageFooterHeight")));
			this.dgrdData.PrintInfo.PageHeader = resources.GetString("dgrdData.PrintInfo.PageHeader");
			this.dgrdData.PrintInfo.PageHeaderHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.PageHeaderHeight")));
			this.dgrdData.PrintInfo.PrintHorizontalSplits = ((bool)(resources.GetObject("dgrdData.PrintInfo.PrintHorizontalSplits")));
			this.dgrdData.PrintInfo.ProgressCaption = resources.GetString("dgrdData.PrintInfo.ProgressCaption");
			this.dgrdData.PrintInfo.RepeatColumnFooters = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatColumnFooters")));
			this.dgrdData.PrintInfo.RepeatColumnHeaders = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatColumnHeaders")));
			this.dgrdData.PrintInfo.RepeatGridHeader = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatGridHeader")));
			this.dgrdData.PrintInfo.RepeatSplitHeaders = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatSplitHeaders")));
			this.dgrdData.PrintInfo.ShowOptionsDialog = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowOptionsDialog")));
			this.dgrdData.PrintInfo.ShowProgressForm = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowProgressForm")));
			this.dgrdData.PrintInfo.ShowSelection = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowSelection")));
			this.dgrdData.PrintInfo.UseGridColors = ((bool)(resources.GetObject("dgrdData.PrintInfo.UseGridColors")));
			this.dgrdData.RecordSelectors = ((bool)(resources.GetObject("dgrdData.RecordSelectors")));
			this.dgrdData.RecordSelectorWidth = ((int)(resources.GetObject("dgrdData.RecordSelectorWidth")));
			this.dgrdData.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dgrdData.RightToLeft")));
			this.dgrdData.RowDivider.Color = ((System.Drawing.Color)(resources.GetObject("resource.Color")));
			this.dgrdData.RowDivider.Style = ((C1.Win.C1TrueDBGrid.LineStyleEnum)(resources.GetObject("resource.Style")));
			this.dgrdData.RowHeight = ((int)(resources.GetObject("dgrdData.RowHeight")));
			this.dgrdData.RowSubDividerColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.RowSubDividerColor")));
			this.dgrdData.ScrollTips = ((bool)(resources.GetObject("dgrdData.ScrollTips")));
			this.dgrdData.ScrollTrack = ((bool)(resources.GetObject("dgrdData.ScrollTrack")));
			this.dgrdData.Size = ((System.Drawing.Size)(resources.GetObject("dgrdData.Size")));
			this.dgrdData.SpringMode = ((bool)(resources.GetObject("dgrdData.SpringMode")));
			this.dgrdData.TabAcrossSplits = ((bool)(resources.GetObject("dgrdData.TabAcrossSplits")));
			this.dgrdData.TabIndex = ((int)(resources.GetObject("dgrdData.TabIndex")));
			this.dgrdData.Text = resources.GetString("dgrdData.Text");
			this.dgrdData.ViewCaptionWidth = ((int)(resources.GetObject("dgrdData.ViewCaptionWidth")));
			this.dgrdData.ViewColumnWidth = ((int)(resources.GetObject("dgrdData.ViewColumnWidth")));
			this.dgrdData.Visible = ((bool)(resources.GetObject("dgrdData.Visible")));
			this.dgrdData.WrapCellPointer = ((bool)(resources.GetObject("dgrdData.WrapCellPointer")));
			this.dgrdData.ButtonClick += new C1.Win.C1TrueDBGrid.ColEventHandler(this.dgrdData_ButtonClick);
			this.dgrdData.AfterColUpdate += new C1.Win.C1TrueDBGrid.ColEventHandler(this.dgrdData_AfterColUpdate);
			this.dgrdData.BeforeColUpdate += new C1.Win.C1TrueDBGrid.BeforeColUpdateEventHandler(this.dgrdData_BeforeColUpdate);
			this.dgrdData.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgrdData_KeyDown);
			this.dgrdData.PropBag = resources.GetString("dgrdData.PropBag");
			// 
			// label1
			// 
			this.label1.AccessibleDescription = resources.GetString("label1.AccessibleDescription");
			this.label1.AccessibleName = resources.GetString("label1.AccessibleName");
			this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label1.Anchor")));
			this.label1.AutoSize = ((bool)(resources.GetObject("label1.AutoSize")));
			this.label1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("label1.Dock")));
			this.label1.Enabled = ((bool)(resources.GetObject("label1.Enabled")));
			this.label1.Font = ((System.Drawing.Font)(resources.GetObject("label1.Font")));
			this.label1.ForeColor = System.Drawing.Color.Maroon;
			this.label1.Image = ((System.Drawing.Image)(resources.GetObject("label1.Image")));
			this.label1.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.ImageAlign")));
			this.label1.ImageIndex = ((int)(resources.GetObject("label1.ImageIndex")));
			this.label1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("label1.ImeMode")));
			this.label1.Location = ((System.Drawing.Point)(resources.GetObject("label1.Location")));
			this.label1.Name = "label1";
			this.label1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label1.RightToLeft")));
			this.label1.Size = ((System.Drawing.Size)(resources.GetObject("label1.Size")));
			this.label1.TabIndex = ((int)(resources.GetObject("label1.TabIndex")));
			this.label1.Text = resources.GetString("label1.Text");
			this.label1.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.TextAlign")));
			this.label1.Visible = ((bool)(resources.GetObject("label1.Visible")));
			// 
			// txtCycleDecription
			// 
			this.txtCycleDecription.AccessibleDescription = resources.GetString("txtCycleDecription.AccessibleDescription");
			this.txtCycleDecription.AccessibleName = resources.GetString("txtCycleDecription.AccessibleName");
			this.txtCycleDecription.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtCycleDecription.Anchor")));
			this.txtCycleDecription.AutoSize = ((bool)(resources.GetObject("txtCycleDecription.AutoSize")));
			this.txtCycleDecription.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtCycleDecription.BackgroundImage")));
			this.txtCycleDecription.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtCycleDecription.Dock")));
			this.txtCycleDecription.Enabled = ((bool)(resources.GetObject("txtCycleDecription.Enabled")));
			this.txtCycleDecription.Font = ((System.Drawing.Font)(resources.GetObject("txtCycleDecription.Font")));
			this.txtCycleDecription.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtCycleDecription.ImeMode")));
			this.txtCycleDecription.Location = ((System.Drawing.Point)(resources.GetObject("txtCycleDecription.Location")));
			this.txtCycleDecription.MaxLength = ((int)(resources.GetObject("txtCycleDecription.MaxLength")));
			this.txtCycleDecription.Multiline = ((bool)(resources.GetObject("txtCycleDecription.Multiline")));
			this.txtCycleDecription.Name = "txtCycleDecription";
			this.txtCycleDecription.PasswordChar = ((char)(resources.GetObject("txtCycleDecription.PasswordChar")));
			this.txtCycleDecription.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtCycleDecription.RightToLeft")));
			this.txtCycleDecription.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtCycleDecription.ScrollBars")));
			this.txtCycleDecription.Size = ((System.Drawing.Size)(resources.GetObject("txtCycleDecription.Size")));
			this.txtCycleDecription.TabIndex = ((int)(resources.GetObject("txtCycleDecription.TabIndex")));
			this.txtCycleDecription.Text = resources.GetString("txtCycleDecription.Text");
			this.txtCycleDecription.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtCycleDecription.TextAlign")));
			this.txtCycleDecription.Visible = ((bool)(resources.GetObject("txtCycleDecription.Visible")));
			this.txtCycleDecription.WordWrap = ((bool)(resources.GetObject("txtCycleDecription.WordWrap")));
			this.txtCycleDecription.Leave += new System.EventHandler(this.OnLeaveControl);
			this.txtCycleDecription.Enter += new System.EventHandler(this.OnEnterControl);
			// 
			// lblCycleDesc
			// 
			this.lblCycleDesc.AccessibleDescription = resources.GetString("lblCycleDesc.AccessibleDescription");
			this.lblCycleDesc.AccessibleName = resources.GetString("lblCycleDesc.AccessibleName");
			this.lblCycleDesc.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblCycleDesc.Anchor")));
			this.lblCycleDesc.AutoSize = ((bool)(resources.GetObject("lblCycleDesc.AutoSize")));
			this.lblCycleDesc.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblCycleDesc.Dock")));
			this.lblCycleDesc.Enabled = ((bool)(resources.GetObject("lblCycleDesc.Enabled")));
			this.lblCycleDesc.Font = ((System.Drawing.Font)(resources.GetObject("lblCycleDesc.Font")));
			this.lblCycleDesc.Image = ((System.Drawing.Image)(resources.GetObject("lblCycleDesc.Image")));
			this.lblCycleDesc.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCycleDesc.ImageAlign")));
			this.lblCycleDesc.ImageIndex = ((int)(resources.GetObject("lblCycleDesc.ImageIndex")));
			this.lblCycleDesc.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblCycleDesc.ImeMode")));
			this.lblCycleDesc.Location = ((System.Drawing.Point)(resources.GetObject("lblCycleDesc.Location")));
			this.lblCycleDesc.Name = "lblCycleDesc";
			this.lblCycleDesc.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblCycleDesc.RightToLeft")));
			this.lblCycleDesc.Size = ((System.Drawing.Size)(resources.GetObject("lblCycleDesc.Size")));
			this.lblCycleDesc.TabIndex = ((int)(resources.GetObject("lblCycleDesc.TabIndex")));
			this.lblCycleDesc.Text = resources.GetString("lblCycleDesc.Text");
			this.lblCycleDesc.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCycleDesc.TextAlign")));
			this.lblCycleDesc.Visible = ((bool)(resources.GetObject("lblCycleDesc.Visible")));
			// 
			// lblCycle
			// 
			this.lblCycle.AccessibleDescription = resources.GetString("lblCycle.AccessibleDescription");
			this.lblCycle.AccessibleName = resources.GetString("lblCycle.AccessibleName");
			this.lblCycle.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblCycle.Anchor")));
			this.lblCycle.AutoSize = ((bool)(resources.GetObject("lblCycle.AutoSize")));
			this.lblCycle.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblCycle.Dock")));
			this.lblCycle.Enabled = ((bool)(resources.GetObject("lblCycle.Enabled")));
			this.lblCycle.Font = ((System.Drawing.Font)(resources.GetObject("lblCycle.Font")));
			this.lblCycle.ForeColor = System.Drawing.Color.Maroon;
			this.lblCycle.Image = ((System.Drawing.Image)(resources.GetObject("lblCycle.Image")));
			this.lblCycle.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCycle.ImageAlign")));
			this.lblCycle.ImageIndex = ((int)(resources.GetObject("lblCycle.ImageIndex")));
			this.lblCycle.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblCycle.ImeMode")));
			this.lblCycle.Location = ((System.Drawing.Point)(resources.GetObject("lblCycle.Location")));
			this.lblCycle.Name = "lblCycle";
			this.lblCycle.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblCycle.RightToLeft")));
			this.lblCycle.Size = ((System.Drawing.Size)(resources.GetObject("lblCycle.Size")));
			this.lblCycle.TabIndex = ((int)(resources.GetObject("lblCycle.TabIndex")));
			this.lblCycle.Text = resources.GetString("lblCycle.Text");
			this.lblCycle.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCycle.TextAlign")));
			this.lblCycle.Visible = ((bool)(resources.GetObject("lblCycle.Visible")));
			// 
			// lblGenDate
			// 
			this.lblGenDate.AccessibleDescription = resources.GetString("lblGenDate.AccessibleDescription");
			this.lblGenDate.AccessibleName = resources.GetString("lblGenDate.AccessibleName");
			this.lblGenDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblGenDate.Anchor")));
			this.lblGenDate.AutoSize = ((bool)(resources.GetObject("lblGenDate.AutoSize")));
			this.lblGenDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblGenDate.Dock")));
			this.lblGenDate.Enabled = ((bool)(resources.GetObject("lblGenDate.Enabled")));
			this.lblGenDate.Font = ((System.Drawing.Font)(resources.GetObject("lblGenDate.Font")));
			this.lblGenDate.Image = ((System.Drawing.Image)(resources.GetObject("lblGenDate.Image")));
			this.lblGenDate.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblGenDate.ImageAlign")));
			this.lblGenDate.ImageIndex = ((int)(resources.GetObject("lblGenDate.ImageIndex")));
			this.lblGenDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblGenDate.ImeMode")));
			this.lblGenDate.Location = ((System.Drawing.Point)(resources.GetObject("lblGenDate.Location")));
			this.lblGenDate.Name = "lblGenDate";
			this.lblGenDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblGenDate.RightToLeft")));
			this.lblGenDate.Size = ((System.Drawing.Size)(resources.GetObject("lblGenDate.Size")));
			this.lblGenDate.TabIndex = ((int)(resources.GetObject("lblGenDate.TabIndex")));
			this.lblGenDate.Text = resources.GetString("lblGenDate.Text");
			this.lblGenDate.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblGenDate.TextAlign")));
			this.lblGenDate.Visible = ((bool)(resources.GetObject("lblGenDate.Visible")));
			// 
			// lblToDate
			// 
			this.lblToDate.AccessibleDescription = resources.GetString("lblToDate.AccessibleDescription");
			this.lblToDate.AccessibleName = resources.GetString("lblToDate.AccessibleName");
			this.lblToDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblToDate.Anchor")));
			this.lblToDate.AutoSize = ((bool)(resources.GetObject("lblToDate.AutoSize")));
			this.lblToDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblToDate.Dock")));
			this.lblToDate.Enabled = ((bool)(resources.GetObject("lblToDate.Enabled")));
			this.lblToDate.Font = ((System.Drawing.Font)(resources.GetObject("lblToDate.Font")));
			this.lblToDate.ForeColor = System.Drawing.Color.Maroon;
			this.lblToDate.Image = ((System.Drawing.Image)(resources.GetObject("lblToDate.Image")));
			this.lblToDate.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblToDate.ImageAlign")));
			this.lblToDate.ImageIndex = ((int)(resources.GetObject("lblToDate.ImageIndex")));
			this.lblToDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblToDate.ImeMode")));
			this.lblToDate.Location = ((System.Drawing.Point)(resources.GetObject("lblToDate.Location")));
			this.lblToDate.Name = "lblToDate";
			this.lblToDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblToDate.RightToLeft")));
			this.lblToDate.Size = ((System.Drawing.Size)(resources.GetObject("lblToDate.Size")));
			this.lblToDate.TabIndex = ((int)(resources.GetObject("lblToDate.TabIndex")));
			this.lblToDate.Text = resources.GetString("lblToDate.Text");
			this.lblToDate.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblToDate.TextAlign")));
			this.lblToDate.Visible = ((bool)(resources.GetObject("lblToDate.Visible")));
			// 
			// lblFromDate
			// 
			this.lblFromDate.AccessibleDescription = resources.GetString("lblFromDate.AccessibleDescription");
			this.lblFromDate.AccessibleName = resources.GetString("lblFromDate.AccessibleName");
			this.lblFromDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblFromDate.Anchor")));
			this.lblFromDate.AutoSize = ((bool)(resources.GetObject("lblFromDate.AutoSize")));
			this.lblFromDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblFromDate.Dock")));
			this.lblFromDate.Enabled = ((bool)(resources.GetObject("lblFromDate.Enabled")));
			this.lblFromDate.Font = ((System.Drawing.Font)(resources.GetObject("lblFromDate.Font")));
			this.lblFromDate.ForeColor = System.Drawing.Color.Maroon;
			this.lblFromDate.Image = ((System.Drawing.Image)(resources.GetObject("lblFromDate.Image")));
			this.lblFromDate.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFromDate.ImageAlign")));
			this.lblFromDate.ImageIndex = ((int)(resources.GetObject("lblFromDate.ImageIndex")));
			this.lblFromDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblFromDate.ImeMode")));
			this.lblFromDate.Location = ((System.Drawing.Point)(resources.GetObject("lblFromDate.Location")));
			this.lblFromDate.Name = "lblFromDate";
			this.lblFromDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblFromDate.RightToLeft")));
			this.lblFromDate.Size = ((System.Drawing.Size)(resources.GetObject("lblFromDate.Size")));
			this.lblFromDate.TabIndex = ((int)(resources.GetObject("lblFromDate.TabIndex")));
			this.lblFromDate.Text = resources.GetString("lblFromDate.Text");
			this.lblFromDate.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFromDate.TextAlign")));
			this.lblFromDate.Visible = ((bool)(resources.GetObject("lblFromDate.Visible")));
			// 
			// lblMPSCycle
			// 
			this.lblMPSCycle.AccessibleDescription = resources.GetString("lblMPSCycle.AccessibleDescription");
			this.lblMPSCycle.AccessibleName = resources.GetString("lblMPSCycle.AccessibleName");
			this.lblMPSCycle.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblMPSCycle.Anchor")));
			this.lblMPSCycle.AutoSize = ((bool)(resources.GetObject("lblMPSCycle.AutoSize")));
			this.lblMPSCycle.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblMPSCycle.Dock")));
			this.lblMPSCycle.Enabled = ((bool)(resources.GetObject("lblMPSCycle.Enabled")));
			this.lblMPSCycle.Font = ((System.Drawing.Font)(resources.GetObject("lblMPSCycle.Font")));
			this.lblMPSCycle.ForeColor = System.Drawing.SystemColors.WindowText;
			this.lblMPSCycle.Image = ((System.Drawing.Image)(resources.GetObject("lblMPSCycle.Image")));
			this.lblMPSCycle.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblMPSCycle.ImageAlign")));
			this.lblMPSCycle.ImageIndex = ((int)(resources.GetObject("lblMPSCycle.ImageIndex")));
			this.lblMPSCycle.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblMPSCycle.ImeMode")));
			this.lblMPSCycle.Location = ((System.Drawing.Point)(resources.GetObject("lblMPSCycle.Location")));
			this.lblMPSCycle.Name = "lblMPSCycle";
			this.lblMPSCycle.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblMPSCycle.RightToLeft")));
			this.lblMPSCycle.Size = ((System.Drawing.Size)(resources.GetObject("lblMPSCycle.Size")));
			this.lblMPSCycle.TabIndex = ((int)(resources.GetObject("lblMPSCycle.TabIndex")));
			this.lblMPSCycle.Text = resources.GetString("lblMPSCycle.Text");
			this.lblMPSCycle.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblMPSCycle.TextAlign")));
			this.lblMPSCycle.Visible = ((bool)(resources.GetObject("lblMPSCycle.Visible")));
			// 
			// btnCycleSearch
			// 
			this.btnCycleSearch.AccessibleDescription = resources.GetString("btnCycleSearch.AccessibleDescription");
			this.btnCycleSearch.AccessibleName = resources.GetString("btnCycleSearch.AccessibleName");
			this.btnCycleSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnCycleSearch.Anchor")));
			this.btnCycleSearch.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnCycleSearch.BackgroundImage")));
			this.btnCycleSearch.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnCycleSearch.Dock")));
			this.btnCycleSearch.Enabled = ((bool)(resources.GetObject("btnCycleSearch.Enabled")));
			this.btnCycleSearch.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnCycleSearch.FlatStyle")));
			this.btnCycleSearch.Font = ((System.Drawing.Font)(resources.GetObject("btnCycleSearch.Font")));
			this.btnCycleSearch.Image = ((System.Drawing.Image)(resources.GetObject("btnCycleSearch.Image")));
			this.btnCycleSearch.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnCycleSearch.ImageAlign")));
			this.btnCycleSearch.ImageIndex = ((int)(resources.GetObject("btnCycleSearch.ImageIndex")));
			this.btnCycleSearch.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnCycleSearch.ImeMode")));
			this.btnCycleSearch.Location = ((System.Drawing.Point)(resources.GetObject("btnCycleSearch.Location")));
			this.btnCycleSearch.Name = "btnCycleSearch";
			this.btnCycleSearch.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnCycleSearch.RightToLeft")));
			this.btnCycleSearch.Size = ((System.Drawing.Size)(resources.GetObject("btnCycleSearch.Size")));
			this.btnCycleSearch.TabIndex = ((int)(resources.GetObject("btnCycleSearch.TabIndex")));
			this.btnCycleSearch.Text = resources.GetString("btnCycleSearch.Text");
			this.btnCycleSearch.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnCycleSearch.TextAlign")));
			this.btnCycleSearch.Visible = ((bool)(resources.GetObject("btnCycleSearch.Visible")));
			this.btnCycleSearch.Click += new System.EventHandler(this.btnCycleSearch_Click);
			// 
			// txtCycle
			// 
			this.txtCycle.AccessibleDescription = resources.GetString("txtCycle.AccessibleDescription");
			this.txtCycle.AccessibleName = resources.GetString("txtCycle.AccessibleName");
			this.txtCycle.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtCycle.Anchor")));
			this.txtCycle.AutoSize = ((bool)(resources.GetObject("txtCycle.AutoSize")));
			this.txtCycle.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtCycle.BackgroundImage")));
			this.txtCycle.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtCycle.Dock")));
			this.txtCycle.Enabled = ((bool)(resources.GetObject("txtCycle.Enabled")));
			this.txtCycle.Font = ((System.Drawing.Font)(resources.GetObject("txtCycle.Font")));
			this.txtCycle.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtCycle.ImeMode")));
			this.txtCycle.Location = ((System.Drawing.Point)(resources.GetObject("txtCycle.Location")));
			this.txtCycle.MaxLength = ((int)(resources.GetObject("txtCycle.MaxLength")));
			this.txtCycle.Multiline = ((bool)(resources.GetObject("txtCycle.Multiline")));
			this.txtCycle.Name = "txtCycle";
			this.txtCycle.PasswordChar = ((char)(resources.GetObject("txtCycle.PasswordChar")));
			this.txtCycle.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtCycle.RightToLeft")));
			this.txtCycle.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtCycle.ScrollBars")));
			this.txtCycle.Size = ((System.Drawing.Size)(resources.GetObject("txtCycle.Size")));
			this.txtCycle.TabIndex = ((int)(resources.GetObject("txtCycle.TabIndex")));
			this.txtCycle.Text = resources.GetString("txtCycle.Text");
			this.txtCycle.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtCycle.TextAlign")));
			this.txtCycle.Visible = ((bool)(resources.GetObject("txtCycle.Visible")));
			this.txtCycle.WordWrap = ((bool)(resources.GetObject("txtCycle.WordWrap")));
			this.txtCycle.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtCycle_KeyDown);
			this.txtCycle.Leave += new System.EventHandler(this.txtCycle_Leave);
			this.txtCycle.Enter += new System.EventHandler(this.OnEnterControl);
			// 
			// btnMPSCycleSearch
			// 
			this.btnMPSCycleSearch.AccessibleDescription = resources.GetString("btnMPSCycleSearch.AccessibleDescription");
			this.btnMPSCycleSearch.AccessibleName = resources.GetString("btnMPSCycleSearch.AccessibleName");
			this.btnMPSCycleSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnMPSCycleSearch.Anchor")));
			this.btnMPSCycleSearch.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnMPSCycleSearch.BackgroundImage")));
			this.btnMPSCycleSearch.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnMPSCycleSearch.Dock")));
			this.btnMPSCycleSearch.Enabled = ((bool)(resources.GetObject("btnMPSCycleSearch.Enabled")));
			this.btnMPSCycleSearch.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnMPSCycleSearch.FlatStyle")));
			this.btnMPSCycleSearch.Font = ((System.Drawing.Font)(resources.GetObject("btnMPSCycleSearch.Font")));
			this.btnMPSCycleSearch.Image = ((System.Drawing.Image)(resources.GetObject("btnMPSCycleSearch.Image")));
			this.btnMPSCycleSearch.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnMPSCycleSearch.ImageAlign")));
			this.btnMPSCycleSearch.ImageIndex = ((int)(resources.GetObject("btnMPSCycleSearch.ImageIndex")));
			this.btnMPSCycleSearch.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnMPSCycleSearch.ImeMode")));
			this.btnMPSCycleSearch.Location = ((System.Drawing.Point)(resources.GetObject("btnMPSCycleSearch.Location")));
			this.btnMPSCycleSearch.Name = "btnMPSCycleSearch";
			this.btnMPSCycleSearch.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnMPSCycleSearch.RightToLeft")));
			this.btnMPSCycleSearch.Size = ((System.Drawing.Size)(resources.GetObject("btnMPSCycleSearch.Size")));
			this.btnMPSCycleSearch.TabIndex = ((int)(resources.GetObject("btnMPSCycleSearch.TabIndex")));
			this.btnMPSCycleSearch.Text = resources.GetString("btnMPSCycleSearch.Text");
			this.btnMPSCycleSearch.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnMPSCycleSearch.TextAlign")));
			this.btnMPSCycleSearch.Visible = ((bool)(resources.GetObject("btnMPSCycleSearch.Visible")));
			this.btnMPSCycleSearch.Click += new System.EventHandler(this.btnMPSCycleSearch_Click);
			// 
			// txtMPSCycle
			// 
			this.txtMPSCycle.AccessibleDescription = resources.GetString("txtMPSCycle.AccessibleDescription");
			this.txtMPSCycle.AccessibleName = resources.GetString("txtMPSCycle.AccessibleName");
			this.txtMPSCycle.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtMPSCycle.Anchor")));
			this.txtMPSCycle.AutoSize = ((bool)(resources.GetObject("txtMPSCycle.AutoSize")));
			this.txtMPSCycle.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtMPSCycle.BackgroundImage")));
			this.txtMPSCycle.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtMPSCycle.Dock")));
			this.txtMPSCycle.Enabled = ((bool)(resources.GetObject("txtMPSCycle.Enabled")));
			this.txtMPSCycle.Font = ((System.Drawing.Font)(resources.GetObject("txtMPSCycle.Font")));
			this.txtMPSCycle.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtMPSCycle.ImeMode")));
			this.txtMPSCycle.Location = ((System.Drawing.Point)(resources.GetObject("txtMPSCycle.Location")));
			this.txtMPSCycle.MaxLength = ((int)(resources.GetObject("txtMPSCycle.MaxLength")));
			this.txtMPSCycle.Multiline = ((bool)(resources.GetObject("txtMPSCycle.Multiline")));
			this.txtMPSCycle.Name = "txtMPSCycle";
			this.txtMPSCycle.PasswordChar = ((char)(resources.GetObject("txtMPSCycle.PasswordChar")));
			this.txtMPSCycle.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtMPSCycle.RightToLeft")));
			this.txtMPSCycle.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtMPSCycle.ScrollBars")));
			this.txtMPSCycle.Size = ((System.Drawing.Size)(resources.GetObject("txtMPSCycle.Size")));
			this.txtMPSCycle.TabIndex = ((int)(resources.GetObject("txtMPSCycle.TabIndex")));
			this.txtMPSCycle.Text = resources.GetString("txtMPSCycle.Text");
			this.txtMPSCycle.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtMPSCycle.TextAlign")));
			this.txtMPSCycle.Visible = ((bool)(resources.GetObject("txtMPSCycle.Visible")));
			this.txtMPSCycle.WordWrap = ((bool)(resources.GetObject("txtMPSCycle.WordWrap")));
			this.txtMPSCycle.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtMPSCycle_KeyDown);
			this.txtMPSCycle.Leave += new System.EventHandler(this.txtMPSCycle_Leave);
			this.txtMPSCycle.Enter += new System.EventHandler(this.OnEnterControl);
			// 
			// cboCCN
			// 
			this.cboCCN.AccessibleDescription = resources.GetString("cboCCN.AccessibleDescription");
			this.cboCCN.AccessibleName = resources.GetString("cboCCN.AccessibleName");
			this.cboCCN.AddItemSeparator = ';';
			this.cboCCN.AllowRowSizing = C1.Win.C1List.RowSizingEnum.AllRows;
			this.cboCCN.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("cboCCN.Anchor")));
			this.cboCCN.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("cboCCN.BackgroundImage")));
			this.cboCCN.Caption = "";
			this.cboCCN.CaptionHeight = 17;
			this.cboCCN.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
			this.cboCCN.ColumnCaptionHeight = 17;
			this.cboCCN.ColumnFooterHeight = 17;
			this.cboCCN.ContentHeight = 15;
			this.cboCCN.DeadAreaBackColor = System.Drawing.Color.Empty;
			this.cboCCN.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("cboCCN.Dock")));
			this.cboCCN.EditorBackColor = System.Drawing.SystemColors.Window;
			this.cboCCN.EditorFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.cboCCN.EditorForeColor = System.Drawing.SystemColors.WindowText;
			this.cboCCN.EditorHeight = 15;
			this.cboCCN.Enabled = ((bool)(resources.GetObject("cboCCN.Enabled")));
			this.cboCCN.Font = ((System.Drawing.Font)(resources.GetObject("cboCCN.Font")));
			this.cboCCN.GapHeight = 2;
			this.cboCCN.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("cboCCN.ImeMode")));
			this.cboCCN.ItemHeight = 15;
			this.cboCCN.Location = ((System.Drawing.Point)(resources.GetObject("cboCCN.Location")));
			this.cboCCN.MatchEntryTimeout = ((long)(2000));
			this.cboCCN.MaxDropDownItems = ((short)(5));
			this.cboCCN.MaxLength = 32767;
			this.cboCCN.MouseCursor = System.Windows.Forms.Cursors.Default;
			this.cboCCN.Name = "cboCCN";
			this.cboCCN.PartialRightColumn = false;
			this.cboCCN.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("cboCCN.RightToLeft")));
			this.cboCCN.RowDivider.Color = System.Drawing.Color.DarkGray;
			this.cboCCN.RowDivider.Style = C1.Win.C1List.LineStyleEnum.None;
			this.cboCCN.RowSubDividerColor = System.Drawing.Color.DarkGray;
			this.cboCCN.Size = ((System.Drawing.Size)(resources.GetObject("cboCCN.Size")));
			this.cboCCN.TabIndex = ((int)(resources.GetObject("cboCCN.TabIndex")));
			this.cboCCN.Text = resources.GetString("cboCCN.Text");
			this.cboCCN.Visible = ((bool)(resources.GetObject("cboCCN.Visible")));
			this.cboCCN.Enter += new System.EventHandler(this.OnEnterControl);
			this.cboCCN.Leave += new System.EventHandler(this.OnLeaveControl);
			this.cboCCN.PropBag = "<?xml version=\"1.0\"?><Blob><Styles type=\"C1.Win.C1List.Design.ContextWrapper\"><Da" +
				"ta>Group{AlignVert:Center;Border:None,,0, 0, 0, 0;BackColor:ControlDark;}Style2{" +
				"}Style5{}Style4{}Style7{}Style6{}EvenRow{BackColor:Aqua;}Selected{ForeColor:High" +
				"lightText;BackColor:Highlight;}Style3{}Inactive{ForeColor:InactiveCaptionText;Ba" +
				"ckColor:InactiveCaption;}Footer{}Caption{AlignHorz:Center;}Normal{BackColor:Wind" +
				"ow;}HighlightRow{ForeColor:HighlightText;BackColor:Highlight;}Style1{}OddRow{}Re" +
				"cordSelector{AlignImage:Center;}Heading{Wrap:True;BackColor:Control;Border:Raise" +
				"d,,1, 1, 1, 1;ForeColor:ControlText;AlignVert:Center;}Style8{}Style10{}Style11{}" +
				"Style9{AlignHorz:Near;}</Data></Styles><Splits><C1.Win.C1List.ListBoxView AllowC" +
				"olSelect=\"False\" Name=\"\" CaptionHeight=\"17\" ColumnCaptionHeight=\"17\" ColumnFoote" +
				"rHeight=\"17\" VerticalScrollGroup=\"1\" HorizontalScrollGroup=\"1\"><ClientRect>0, 0," +
				" 116, 156</ClientRect><VScrollBar><Width>16</Width></VScrollBar><HScrollBar><Hei" +
				"ght>16</Height></HScrollBar><CaptionStyle parent=\"Style2\" me=\"Style9\" /><EvenRow" +
				"Style parent=\"EvenRow\" me=\"Style7\" /><FooterStyle parent=\"Footer\" me=\"Style3\" />" +
				"<GroupStyle parent=\"Group\" me=\"Style11\" /><HeadingStyle parent=\"Heading\" me=\"Sty" +
				"le2\" /><HighLightRowStyle parent=\"HighlightRow\" me=\"Style6\" /><InactiveStyle par" +
				"ent=\"Inactive\" me=\"Style4\" /><OddRowStyle parent=\"OddRow\" me=\"Style8\" /><RecordS" +
				"electorStyle parent=\"RecordSelector\" me=\"Style10\" /><SelectedStyle parent=\"Selec" +
				"ted\" me=\"Style5\" /><Style parent=\"Normal\" me=\"Style1\" /></C1.Win.C1List.ListBoxV" +
				"iew></Splits><NamedStyles><Style parent=\"\" me=\"Normal\" /><Style parent=\"Normal\" " +
				"me=\"Heading\" /><Style parent=\"Heading\" me=\"Footer\" /><Style parent=\"Heading\" me=" +
				"\"Caption\" /><Style parent=\"Heading\" me=\"Inactive\" /><Style parent=\"Normal\" me=\"S" +
				"elected\" /><Style parent=\"Normal\" me=\"HighlightRow\" /><Style parent=\"Normal\" me=" +
				"\"EvenRow\" /><Style parent=\"Normal\" me=\"OddRow\" /><Style parent=\"Heading\" me=\"Rec" +
				"ordSelector\" /><Style parent=\"Caption\" me=\"Group\" /></NamedStyles><vertSplits>1<" +
				"/vertSplits><horzSplits>1</horzSplits><Layout>Modified</Layout><DefaultRecSelWid" +
				"th>16</DefaultRecSelWidth></Blob>";
			// 
			// dtmFromDate
			// 
			this.dtmFromDate.AcceptsEscape = ((bool)(resources.GetObject("dtmFromDate.AcceptsEscape")));
			this.dtmFromDate.AccessibleDescription = resources.GetString("dtmFromDate.AccessibleDescription");
			this.dtmFromDate.AccessibleName = resources.GetString("dtmFromDate.AccessibleName");
			this.dtmFromDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmFromDate.Anchor")));
			this.dtmFromDate.AutoSize = ((bool)(resources.GetObject("dtmFromDate.AutoSize")));
			this.dtmFromDate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmFromDate.BackgroundImage")));
			this.dtmFromDate.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmFromDate.BorderStyle")));
			// 
			// dtmFromDate.Calendar
			// 
			this.dtmFromDate.Calendar.AccessibleDescription = resources.GetString("dtmFromDate.Calendar.AccessibleDescription");
			this.dtmFromDate.Calendar.AccessibleName = resources.GetString("dtmFromDate.Calendar.AccessibleName");
			this.dtmFromDate.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromDate.Calendar.AnnuallyBoldedDates")));
			this.dtmFromDate.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmFromDate.Calendar.BackgroundImage")));
			this.dtmFromDate.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromDate.Calendar.BoldedDates")));
			this.dtmFromDate.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmFromDate.Calendar.CalendarDimensions")));
			this.dtmFromDate.Calendar.Enabled = ((bool)(resources.GetObject("dtmFromDate.Calendar.Enabled")));
			this.dtmFromDate.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmFromDate.Calendar.FirstDayOfWeek")));
			this.dtmFromDate.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmFromDate.Calendar.Font")));
			this.dtmFromDate.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmFromDate.Calendar.ImeMode")));
			this.dtmFromDate.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromDate.Calendar.MonthlyBoldedDates")));
			this.dtmFromDate.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmFromDate.Calendar.RightToLeft")));
			this.dtmFromDate.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmFromDate.Calendar.ShowClearButton")));
			this.dtmFromDate.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmFromDate.Calendar.ShowTodayButton")));
			this.dtmFromDate.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmFromDate.Calendar.ShowWeekNumbers")));
			this.dtmFromDate.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.CaseSensitive")));
			this.dtmFromDate.Culture = ((int)(resources.GetObject("dtmFromDate.Culture")));
			this.dtmFromDate.CurrentTimeZone = ((bool)(resources.GetObject("dtmFromDate.CurrentTimeZone")));
			this.dtmFromDate.CustomFormat = resources.GetString("dtmFromDate.CustomFormat");
			this.dtmFromDate.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmFromDate.DaylightTimeAdjustment")));
			this.dtmFromDate.DisplayFormat.CustomFormat = resources.GetString("dtmFromDate.DisplayFormat.CustomFormat");
			this.dtmFromDate.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDate.DisplayFormat.FormatType")));
			this.dtmFromDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmFromDate.DisplayFormat.Inherit")));
			this.dtmFromDate.DisplayFormat.NullText = resources.GetString("dtmFromDate.DisplayFormat.NullText");
			this.dtmFromDate.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.DisplayFormat.TrimEnd")));
			this.dtmFromDate.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmFromDate.DisplayFormat.TrimStart")));
			this.dtmFromDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmFromDate.Dock")));
			this.dtmFromDate.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmFromDate.DropDownFormAlign")));
			this.dtmFromDate.EditFormat.CustomFormat = resources.GetString("dtmFromDate.EditFormat.CustomFormat");
			this.dtmFromDate.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDate.EditFormat.FormatType")));
			this.dtmFromDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmFromDate.EditFormat.Inherit")));
			this.dtmFromDate.EditFormat.NullText = resources.GetString("dtmFromDate.EditFormat.NullText");
			this.dtmFromDate.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.EditFormat.TrimEnd")));
			this.dtmFromDate.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmFromDate.EditFormat.TrimStart")));
			this.dtmFromDate.EditMask = resources.GetString("dtmFromDate.EditMask");
			this.dtmFromDate.EmptyAsNull = ((bool)(resources.GetObject("dtmFromDate.EmptyAsNull")));
			this.dtmFromDate.Enabled = ((bool)(resources.GetObject("dtmFromDate.Enabled")));
			this.dtmFromDate.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmFromDate.ErrorInfo.BeepOnError")));
			this.dtmFromDate.ErrorInfo.ErrorMessage = resources.GetString("dtmFromDate.ErrorInfo.ErrorMessage");
			this.dtmFromDate.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmFromDate.ErrorInfo.ErrorMessageCaption");
			this.dtmFromDate.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmFromDate.ErrorInfo.ShowErrorMessage")));
			this.dtmFromDate.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmFromDate.ErrorInfo.ValueOnError")));
			this.dtmFromDate.Font = ((System.Drawing.Font)(resources.GetObject("dtmFromDate.Font")));
			this.dtmFromDate.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDate.FormatType")));
			this.dtmFromDate.GapHeight = ((int)(resources.GetObject("dtmFromDate.GapHeight")));
			this.dtmFromDate.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmFromDate.GMTOffset")));
			this.dtmFromDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmFromDate.ImeMode")));
			this.dtmFromDate.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmFromDate.InitialSelection")));
			this.dtmFromDate.Location = ((System.Drawing.Point)(resources.GetObject("dtmFromDate.Location")));
			this.dtmFromDate.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmFromDate.MaskInfo.AutoTabWhenFilled")));
			this.dtmFromDate.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.MaskInfo.CaseSensitive")));
			this.dtmFromDate.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmFromDate.MaskInfo.CopyWithLiterals")));
			this.dtmFromDate.MaskInfo.EditMask = resources.GetString("dtmFromDate.MaskInfo.EditMask");
			this.dtmFromDate.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmFromDate.MaskInfo.EmptyAsNull")));
			this.dtmFromDate.MaskInfo.ErrorMessage = resources.GetString("dtmFromDate.MaskInfo.ErrorMessage");
			this.dtmFromDate.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmFromDate.MaskInfo.Inherit")));
			this.dtmFromDate.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmFromDate.MaskInfo.PromptChar")));
			this.dtmFromDate.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmFromDate.MaskInfo.ShowLiterals")));
			this.dtmFromDate.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmFromDate.MaskInfo.StoredEmptyChar")));
			this.dtmFromDate.MaxLength = ((int)(resources.GetObject("dtmFromDate.MaxLength")));
			this.dtmFromDate.Name = "dtmFromDate";
			this.dtmFromDate.NullText = resources.GetString("dtmFromDate.NullText");
			this.dtmFromDate.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.ParseInfo.CaseSensitive")));
			this.dtmFromDate.ParseInfo.CustomFormat = resources.GetString("dtmFromDate.ParseInfo.CustomFormat");
			this.dtmFromDate.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmFromDate.ParseInfo.DateTimeStyle")));
			this.dtmFromDate.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmFromDate.ParseInfo.EmptyAsNull")));
			this.dtmFromDate.ParseInfo.ErrorMessage = resources.GetString("dtmFromDate.ParseInfo.ErrorMessage");
			this.dtmFromDate.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDate.ParseInfo.FormatType")));
			this.dtmFromDate.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmFromDate.ParseInfo.Inherit")));
			this.dtmFromDate.ParseInfo.NullText = resources.GetString("dtmFromDate.ParseInfo.NullText");
			this.dtmFromDate.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.ParseInfo.TrimEnd")));
			this.dtmFromDate.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmFromDate.ParseInfo.TrimStart")));
			this.dtmFromDate.PasswordChar = ((char)(resources.GetObject("dtmFromDate.PasswordChar")));
			this.dtmFromDate.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.PostValidation.CaseSensitive")));
			this.dtmFromDate.PostValidation.ErrorMessage = resources.GetString("dtmFromDate.PostValidation.ErrorMessage");
			this.dtmFromDate.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmFromDate.PostValidation.Inherit")));
			this.dtmFromDate.PostValidation.Intervals.AddRange(new C1.Win.C1Input.ValueInterval[] {
																									  ((C1.Win.C1Input.ValueInterval)(resources.GetObject("dtmFromDate.PostValidation.Intervals")))});
			this.dtmFromDate.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmFromDate.PostValidation.Validation")));
			this.dtmFromDate.PostValidation.Values = ((System.Array)(resources.GetObject("dtmFromDate.PostValidation.Values")));
			this.dtmFromDate.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmFromDate.PostValidation.ValuesExcluded")));
			this.dtmFromDate.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.PreValidation.CaseSensitive")));
			this.dtmFromDate.PreValidation.ErrorMessage = resources.GetString("dtmFromDate.PreValidation.ErrorMessage");
			this.dtmFromDate.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmFromDate.PreValidation.Inherit")));
			this.dtmFromDate.PreValidation.ItemSeparator = resources.GetString("dtmFromDate.PreValidation.ItemSeparator");
			this.dtmFromDate.PreValidation.PatternString = resources.GetString("dtmFromDate.PreValidation.PatternString");
			this.dtmFromDate.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmFromDate.PreValidation.RegexOptions")));
			this.dtmFromDate.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.PreValidation.TrimEnd")));
			this.dtmFromDate.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmFromDate.PreValidation.TrimStart")));
			this.dtmFromDate.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmFromDate.PreValidation.Validation")));
			this.dtmFromDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmFromDate.RightToLeft")));
			this.dtmFromDate.ShowFocusRectangle = ((bool)(resources.GetObject("dtmFromDate.ShowFocusRectangle")));
			this.dtmFromDate.Size = ((System.Drawing.Size)(resources.GetObject("dtmFromDate.Size")));
			this.dtmFromDate.TabIndex = ((int)(resources.GetObject("dtmFromDate.TabIndex")));
			this.dtmFromDate.Tag = ((object)(resources.GetObject("dtmFromDate.Tag")));
			this.dtmFromDate.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmFromDate.TextAlign")));
			this.dtmFromDate.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.TrimEnd")));
			this.dtmFromDate.TrimStart = ((bool)(resources.GetObject("dtmFromDate.TrimStart")));
			this.dtmFromDate.UserCultureOverride = ((bool)(resources.GetObject("dtmFromDate.UserCultureOverride")));
			this.dtmFromDate.Value = ((object)(resources.GetObject("dtmFromDate.Value")));
			this.dtmFromDate.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmFromDate.VerticalAlign")));
			this.dtmFromDate.Visible = ((bool)(resources.GetObject("dtmFromDate.Visible")));
			this.dtmFromDate.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmFromDate.VisibleButtons")));
			this.dtmFromDate.TextChanged += new System.EventHandler(this.dtmFromDate_TextChanged);
			this.dtmFromDate.Leave += new System.EventHandler(this.dtmFromDate_TextChanged);
			// 
			// dtmToDate
			// 
			this.dtmToDate.AcceptsEscape = ((bool)(resources.GetObject("dtmToDate.AcceptsEscape")));
			this.dtmToDate.AccessibleDescription = resources.GetString("dtmToDate.AccessibleDescription");
			this.dtmToDate.AccessibleName = resources.GetString("dtmToDate.AccessibleName");
			this.dtmToDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmToDate.Anchor")));
			this.dtmToDate.AutoSize = ((bool)(resources.GetObject("dtmToDate.AutoSize")));
			this.dtmToDate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmToDate.BackgroundImage")));
			this.dtmToDate.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmToDate.BorderStyle")));
			// 
			// dtmToDate.Calendar
			// 
			this.dtmToDate.Calendar.AccessibleDescription = resources.GetString("dtmToDate.Calendar.AccessibleDescription");
			this.dtmToDate.Calendar.AccessibleName = resources.GetString("dtmToDate.Calendar.AccessibleName");
			this.dtmToDate.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmToDate.Calendar.AnnuallyBoldedDates")));
			this.dtmToDate.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmToDate.Calendar.BackgroundImage")));
			this.dtmToDate.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmToDate.Calendar.BoldedDates")));
			this.dtmToDate.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmToDate.Calendar.CalendarDimensions")));
			this.dtmToDate.Calendar.Enabled = ((bool)(resources.GetObject("dtmToDate.Calendar.Enabled")));
			this.dtmToDate.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmToDate.Calendar.FirstDayOfWeek")));
			this.dtmToDate.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmToDate.Calendar.Font")));
			this.dtmToDate.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmToDate.Calendar.ImeMode")));
			this.dtmToDate.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmToDate.Calendar.MonthlyBoldedDates")));
			this.dtmToDate.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmToDate.Calendar.RightToLeft")));
			this.dtmToDate.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmToDate.Calendar.ShowClearButton")));
			this.dtmToDate.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmToDate.Calendar.ShowTodayButton")));
			this.dtmToDate.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmToDate.Calendar.ShowWeekNumbers")));
			this.dtmToDate.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.CaseSensitive")));
			this.dtmToDate.Culture = ((int)(resources.GetObject("dtmToDate.Culture")));
			this.dtmToDate.CurrentTimeZone = ((bool)(resources.GetObject("dtmToDate.CurrentTimeZone")));
			this.dtmToDate.CustomFormat = resources.GetString("dtmToDate.CustomFormat");
			this.dtmToDate.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmToDate.DaylightTimeAdjustment")));
			this.dtmToDate.DisplayFormat.CustomFormat = resources.GetString("dtmToDate.DisplayFormat.CustomFormat");
			this.dtmToDate.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDate.DisplayFormat.FormatType")));
			this.dtmToDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmToDate.DisplayFormat.Inherit")));
			this.dtmToDate.DisplayFormat.NullText = resources.GetString("dtmToDate.DisplayFormat.NullText");
			this.dtmToDate.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmToDate.DisplayFormat.TrimEnd")));
			this.dtmToDate.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmToDate.DisplayFormat.TrimStart")));
			this.dtmToDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmToDate.Dock")));
			this.dtmToDate.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmToDate.DropDownFormAlign")));
			this.dtmToDate.EditFormat.CustomFormat = resources.GetString("dtmToDate.EditFormat.CustomFormat");
			this.dtmToDate.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDate.EditFormat.FormatType")));
			this.dtmToDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmToDate.EditFormat.Inherit")));
			this.dtmToDate.EditFormat.NullText = resources.GetString("dtmToDate.EditFormat.NullText");
			this.dtmToDate.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmToDate.EditFormat.TrimEnd")));
			this.dtmToDate.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmToDate.EditFormat.TrimStart")));
			this.dtmToDate.EditMask = resources.GetString("dtmToDate.EditMask");
			this.dtmToDate.EmptyAsNull = ((bool)(resources.GetObject("dtmToDate.EmptyAsNull")));
			this.dtmToDate.Enabled = ((bool)(resources.GetObject("dtmToDate.Enabled")));
			this.dtmToDate.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmToDate.ErrorInfo.BeepOnError")));
			this.dtmToDate.ErrorInfo.ErrorMessage = resources.GetString("dtmToDate.ErrorInfo.ErrorMessage");
			this.dtmToDate.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmToDate.ErrorInfo.ErrorMessageCaption");
			this.dtmToDate.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmToDate.ErrorInfo.ShowErrorMessage")));
			this.dtmToDate.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmToDate.ErrorInfo.ValueOnError")));
			this.dtmToDate.Font = ((System.Drawing.Font)(resources.GetObject("dtmToDate.Font")));
			this.dtmToDate.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDate.FormatType")));
			this.dtmToDate.GapHeight = ((int)(resources.GetObject("dtmToDate.GapHeight")));
			this.dtmToDate.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmToDate.GMTOffset")));
			this.dtmToDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmToDate.ImeMode")));
			this.dtmToDate.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmToDate.InitialSelection")));
			this.dtmToDate.Location = ((System.Drawing.Point)(resources.GetObject("dtmToDate.Location")));
			this.dtmToDate.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmToDate.MaskInfo.AutoTabWhenFilled")));
			this.dtmToDate.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.MaskInfo.CaseSensitive")));
			this.dtmToDate.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmToDate.MaskInfo.CopyWithLiterals")));
			this.dtmToDate.MaskInfo.EditMask = resources.GetString("dtmToDate.MaskInfo.EditMask");
			this.dtmToDate.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmToDate.MaskInfo.EmptyAsNull")));
			this.dtmToDate.MaskInfo.ErrorMessage = resources.GetString("dtmToDate.MaskInfo.ErrorMessage");
			this.dtmToDate.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmToDate.MaskInfo.Inherit")));
			this.dtmToDate.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmToDate.MaskInfo.PromptChar")));
			this.dtmToDate.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmToDate.MaskInfo.ShowLiterals")));
			this.dtmToDate.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmToDate.MaskInfo.StoredEmptyChar")));
			this.dtmToDate.MaxLength = ((int)(resources.GetObject("dtmToDate.MaxLength")));
			this.dtmToDate.Name = "dtmToDate";
			this.dtmToDate.NullText = resources.GetString("dtmToDate.NullText");
			this.dtmToDate.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.ParseInfo.CaseSensitive")));
			this.dtmToDate.ParseInfo.CustomFormat = resources.GetString("dtmToDate.ParseInfo.CustomFormat");
			this.dtmToDate.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmToDate.ParseInfo.DateTimeStyle")));
			this.dtmToDate.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmToDate.ParseInfo.EmptyAsNull")));
			this.dtmToDate.ParseInfo.ErrorMessage = resources.GetString("dtmToDate.ParseInfo.ErrorMessage");
			this.dtmToDate.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDate.ParseInfo.FormatType")));
			this.dtmToDate.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmToDate.ParseInfo.Inherit")));
			this.dtmToDate.ParseInfo.NullText = resources.GetString("dtmToDate.ParseInfo.NullText");
			this.dtmToDate.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmToDate.ParseInfo.TrimEnd")));
			this.dtmToDate.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmToDate.ParseInfo.TrimStart")));
			this.dtmToDate.PasswordChar = ((char)(resources.GetObject("dtmToDate.PasswordChar")));
			this.dtmToDate.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.PostValidation.CaseSensitive")));
			this.dtmToDate.PostValidation.ErrorMessage = resources.GetString("dtmToDate.PostValidation.ErrorMessage");
			this.dtmToDate.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmToDate.PostValidation.Inherit")));
			this.dtmToDate.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmToDate.PostValidation.Validation")));
			this.dtmToDate.PostValidation.Values = ((System.Array)(resources.GetObject("dtmToDate.PostValidation.Values")));
			this.dtmToDate.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmToDate.PostValidation.ValuesExcluded")));
			this.dtmToDate.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.PreValidation.CaseSensitive")));
			this.dtmToDate.PreValidation.ErrorMessage = resources.GetString("dtmToDate.PreValidation.ErrorMessage");
			this.dtmToDate.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmToDate.PreValidation.Inherit")));
			this.dtmToDate.PreValidation.ItemSeparator = resources.GetString("dtmToDate.PreValidation.ItemSeparator");
			this.dtmToDate.PreValidation.PatternString = resources.GetString("dtmToDate.PreValidation.PatternString");
			this.dtmToDate.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmToDate.PreValidation.RegexOptions")));
			this.dtmToDate.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmToDate.PreValidation.TrimEnd")));
			this.dtmToDate.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmToDate.PreValidation.TrimStart")));
			this.dtmToDate.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmToDate.PreValidation.Validation")));
			this.dtmToDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmToDate.RightToLeft")));
			this.dtmToDate.ShowFocusRectangle = ((bool)(resources.GetObject("dtmToDate.ShowFocusRectangle")));
			this.dtmToDate.Size = ((System.Drawing.Size)(resources.GetObject("dtmToDate.Size")));
			this.dtmToDate.TabIndex = ((int)(resources.GetObject("dtmToDate.TabIndex")));
			this.dtmToDate.Tag = ((object)(resources.GetObject("dtmToDate.Tag")));
			this.dtmToDate.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmToDate.TextAlign")));
			this.dtmToDate.TrimEnd = ((bool)(resources.GetObject("dtmToDate.TrimEnd")));
			this.dtmToDate.TrimStart = ((bool)(resources.GetObject("dtmToDate.TrimStart")));
			this.dtmToDate.UserCultureOverride = ((bool)(resources.GetObject("dtmToDate.UserCultureOverride")));
			this.dtmToDate.Value = ((object)(resources.GetObject("dtmToDate.Value")));
			this.dtmToDate.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmToDate.VerticalAlign")));
			this.dtmToDate.Visible = ((bool)(resources.GetObject("dtmToDate.Visible")));
			this.dtmToDate.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmToDate.VisibleButtons")));
			this.dtmToDate.TextChanged += new System.EventHandler(this.dtmFromDate_TextChanged);
			this.dtmToDate.Leave += new System.EventHandler(this.dtmFromDate_TextChanged);
			// 
			// txtPlanHorizon
			// 
			this.txtPlanHorizon.AcceptsEscape = ((bool)(resources.GetObject("txtPlanHorizon.AcceptsEscape")));
			this.txtPlanHorizon.AccessibleDescription = resources.GetString("txtPlanHorizon.AccessibleDescription");
			this.txtPlanHorizon.AccessibleName = resources.GetString("txtPlanHorizon.AccessibleName");
			this.txtPlanHorizon.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtPlanHorizon.Anchor")));
			this.txtPlanHorizon.AutoSize = ((bool)(resources.GetObject("txtPlanHorizon.AutoSize")));
			this.txtPlanHorizon.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtPlanHorizon.BackgroundImage")));
			this.txtPlanHorizon.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("txtPlanHorizon.BorderStyle")));
			// 
			// txtPlanHorizon.Calculator
			// 
			this.txtPlanHorizon.Calculator.AccessibleDescription = resources.GetString("txtPlanHorizon.Calculator.AccessibleDescription");
			this.txtPlanHorizon.Calculator.AccessibleName = resources.GetString("txtPlanHorizon.Calculator.AccessibleName");
			this.txtPlanHorizon.Calculator.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtPlanHorizon.Calculator.BackgroundImage")));
			this.txtPlanHorizon.Calculator.ButtonFlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("txtPlanHorizon.Calculator.ButtonFlatStyle")));
			this.txtPlanHorizon.Calculator.DisplayFormat = resources.GetString("txtPlanHorizon.Calculator.DisplayFormat");
			this.txtPlanHorizon.Calculator.Font = ((System.Drawing.Font)(resources.GetObject("txtPlanHorizon.Calculator.Font")));
			this.txtPlanHorizon.Calculator.FormatOnClose = ((bool)(resources.GetObject("txtPlanHorizon.Calculator.FormatOnClose")));
			this.txtPlanHorizon.Calculator.StoredFormat = resources.GetString("txtPlanHorizon.Calculator.StoredFormat");
			this.txtPlanHorizon.Calculator.UIStrings.Content = ((string[])(resources.GetObject("txtPlanHorizon.Calculator.UIStrings.Content")));
			this.txtPlanHorizon.CaseSensitive = ((bool)(resources.GetObject("txtPlanHorizon.CaseSensitive")));
			this.txtPlanHorizon.Culture = ((int)(resources.GetObject("txtPlanHorizon.Culture")));
			this.txtPlanHorizon.CustomFormat = resources.GetString("txtPlanHorizon.CustomFormat");
			this.txtPlanHorizon.DataType = ((System.Type)(resources.GetObject("txtPlanHorizon.DataType")));
			this.txtPlanHorizon.DisplayFormat.CustomFormat = resources.GetString("txtPlanHorizon.DisplayFormat.CustomFormat");
			this.txtPlanHorizon.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtPlanHorizon.DisplayFormat.FormatType")));
			this.txtPlanHorizon.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("txtPlanHorizon.DisplayFormat.Inherit")));
			this.txtPlanHorizon.DisplayFormat.NullText = resources.GetString("txtPlanHorizon.DisplayFormat.NullText");
			this.txtPlanHorizon.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("txtPlanHorizon.DisplayFormat.TrimEnd")));
			this.txtPlanHorizon.DisplayFormat.TrimStart = ((bool)(resources.GetObject("txtPlanHorizon.DisplayFormat.TrimStart")));
			this.txtPlanHorizon.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtPlanHorizon.Dock")));
			this.txtPlanHorizon.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("txtPlanHorizon.DropDownFormAlign")));
			this.txtPlanHorizon.EditFormat.CustomFormat = resources.GetString("txtPlanHorizon.EditFormat.CustomFormat");
			this.txtPlanHorizon.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtPlanHorizon.EditFormat.FormatType")));
			this.txtPlanHorizon.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("txtPlanHorizon.EditFormat.Inherit")));
			this.txtPlanHorizon.EditFormat.NullText = resources.GetString("txtPlanHorizon.EditFormat.NullText");
			this.txtPlanHorizon.EditFormat.TrimEnd = ((bool)(resources.GetObject("txtPlanHorizon.EditFormat.TrimEnd")));
			this.txtPlanHorizon.EditFormat.TrimStart = ((bool)(resources.GetObject("txtPlanHorizon.EditFormat.TrimStart")));
			this.txtPlanHorizon.EditMask = resources.GetString("txtPlanHorizon.EditMask");
			this.txtPlanHorizon.EmptyAsNull = ((bool)(resources.GetObject("txtPlanHorizon.EmptyAsNull")));
			this.txtPlanHorizon.Enabled = ((bool)(resources.GetObject("txtPlanHorizon.Enabled")));
			this.txtPlanHorizon.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("txtPlanHorizon.ErrorInfo.BeepOnError")));
			this.txtPlanHorizon.ErrorInfo.ErrorMessage = resources.GetString("txtPlanHorizon.ErrorInfo.ErrorMessage");
			this.txtPlanHorizon.ErrorInfo.ErrorMessageCaption = resources.GetString("txtPlanHorizon.ErrorInfo.ErrorMessageCaption");
			this.txtPlanHorizon.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("txtPlanHorizon.ErrorInfo.ShowErrorMessage")));
			this.txtPlanHorizon.ErrorInfo.ValueOnError = ((object)(resources.GetObject("txtPlanHorizon.ErrorInfo.ValueOnError")));
			this.txtPlanHorizon.Font = ((System.Drawing.Font)(resources.GetObject("txtPlanHorizon.Font")));
			this.txtPlanHorizon.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtPlanHorizon.FormatType")));
			this.txtPlanHorizon.GapHeight = ((int)(resources.GetObject("txtPlanHorizon.GapHeight")));
			this.txtPlanHorizon.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtPlanHorizon.ImeMode")));
			this.txtPlanHorizon.Increment = ((object)(resources.GetObject("txtPlanHorizon.Increment")));
			this.txtPlanHorizon.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("txtPlanHorizon.InitialSelection")));
			this.txtPlanHorizon.Location = ((System.Drawing.Point)(resources.GetObject("txtPlanHorizon.Location")));
			this.txtPlanHorizon.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("txtPlanHorizon.MaskInfo.AutoTabWhenFilled")));
			this.txtPlanHorizon.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("txtPlanHorizon.MaskInfo.CaseSensitive")));
			this.txtPlanHorizon.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("txtPlanHorizon.MaskInfo.CopyWithLiterals")));
			this.txtPlanHorizon.MaskInfo.EditMask = resources.GetString("txtPlanHorizon.MaskInfo.EditMask");
			this.txtPlanHorizon.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("txtPlanHorizon.MaskInfo.EmptyAsNull")));
			this.txtPlanHorizon.MaskInfo.ErrorMessage = resources.GetString("txtPlanHorizon.MaskInfo.ErrorMessage");
			this.txtPlanHorizon.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("txtPlanHorizon.MaskInfo.Inherit")));
			this.txtPlanHorizon.MaskInfo.PromptChar = ((char)(resources.GetObject("txtPlanHorizon.MaskInfo.PromptChar")));
			this.txtPlanHorizon.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("txtPlanHorizon.MaskInfo.ShowLiterals")));
			this.txtPlanHorizon.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("txtPlanHorizon.MaskInfo.StoredEmptyChar")));
			this.txtPlanHorizon.MaxLength = ((int)(resources.GetObject("txtPlanHorizon.MaxLength")));
			this.txtPlanHorizon.Name = "txtPlanHorizon";
			this.txtPlanHorizon.NullText = resources.GetString("txtPlanHorizon.NullText");
			this.txtPlanHorizon.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("txtPlanHorizon.ParseInfo.CaseSensitive")));
			this.txtPlanHorizon.ParseInfo.CustomFormat = resources.GetString("txtPlanHorizon.ParseInfo.CustomFormat");
			this.txtPlanHorizon.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("txtPlanHorizon.ParseInfo.EmptyAsNull")));
			this.txtPlanHorizon.ParseInfo.ErrorMessage = resources.GetString("txtPlanHorizon.ParseInfo.ErrorMessage");
			this.txtPlanHorizon.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtPlanHorizon.ParseInfo.FormatType")));
			this.txtPlanHorizon.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("txtPlanHorizon.ParseInfo.Inherit")));
			this.txtPlanHorizon.ParseInfo.NullText = resources.GetString("txtPlanHorizon.ParseInfo.NullText");
			this.txtPlanHorizon.ParseInfo.NumberStyle = ((C1.Win.C1Input.NumberStyleFlags)(resources.GetObject("txtPlanHorizon.ParseInfo.NumberStyle")));
			this.txtPlanHorizon.ParseInfo.TrimEnd = ((bool)(resources.GetObject("txtPlanHorizon.ParseInfo.TrimEnd")));
			this.txtPlanHorizon.ParseInfo.TrimStart = ((bool)(resources.GetObject("txtPlanHorizon.ParseInfo.TrimStart")));
			this.txtPlanHorizon.PasswordChar = ((char)(resources.GetObject("txtPlanHorizon.PasswordChar")));
			this.txtPlanHorizon.PostValidation.CaseSensitive = ((bool)(resources.GetObject("txtPlanHorizon.PostValidation.CaseSensitive")));
			this.txtPlanHorizon.PostValidation.ErrorMessage = resources.GetString("txtPlanHorizon.PostValidation.ErrorMessage");
			this.txtPlanHorizon.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("txtPlanHorizon.PostValidation.Inherit")));
			this.txtPlanHorizon.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("txtPlanHorizon.PostValidation.Validation")));
			this.txtPlanHorizon.PostValidation.Values = ((System.Array)(resources.GetObject("txtPlanHorizon.PostValidation.Values")));
			this.txtPlanHorizon.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("txtPlanHorizon.PostValidation.ValuesExcluded")));
			this.txtPlanHorizon.PreValidation.CaseSensitive = ((bool)(resources.GetObject("txtPlanHorizon.PreValidation.CaseSensitive")));
			this.txtPlanHorizon.PreValidation.ErrorMessage = resources.GetString("txtPlanHorizon.PreValidation.ErrorMessage");
			this.txtPlanHorizon.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("txtPlanHorizon.PreValidation.Inherit")));
			this.txtPlanHorizon.PreValidation.ItemSeparator = resources.GetString("txtPlanHorizon.PreValidation.ItemSeparator");
			this.txtPlanHorizon.PreValidation.PatternString = resources.GetString("txtPlanHorizon.PreValidation.PatternString");
			this.txtPlanHorizon.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("txtPlanHorizon.PreValidation.RegexOptions")));
			this.txtPlanHorizon.PreValidation.TrimEnd = ((bool)(resources.GetObject("txtPlanHorizon.PreValidation.TrimEnd")));
			this.txtPlanHorizon.PreValidation.TrimStart = ((bool)(resources.GetObject("txtPlanHorizon.PreValidation.TrimStart")));
			this.txtPlanHorizon.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("txtPlanHorizon.PreValidation.Validation")));
			this.txtPlanHorizon.ReadOnly = true;
			this.txtPlanHorizon.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtPlanHorizon.RightToLeft")));
			this.txtPlanHorizon.ShowFocusRectangle = ((bool)(resources.GetObject("txtPlanHorizon.ShowFocusRectangle")));
			this.txtPlanHorizon.Size = ((System.Drawing.Size)(resources.GetObject("txtPlanHorizon.Size")));
			this.txtPlanHorizon.TabIndex = ((int)(resources.GetObject("txtPlanHorizon.TabIndex")));
			this.txtPlanHorizon.Tag = ((object)(resources.GetObject("txtPlanHorizon.Tag")));
			this.txtPlanHorizon.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtPlanHorizon.TextAlign")));
			this.txtPlanHorizon.TrimEnd = ((bool)(resources.GetObject("txtPlanHorizon.TrimEnd")));
			this.txtPlanHorizon.TrimStart = ((bool)(resources.GetObject("txtPlanHorizon.TrimStart")));
			this.txtPlanHorizon.UserCultureOverride = ((bool)(resources.GetObject("txtPlanHorizon.UserCultureOverride")));
			this.txtPlanHorizon.Value = ((object)(resources.GetObject("txtPlanHorizon.Value")));
			this.txtPlanHorizon.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("txtPlanHorizon.VerticalAlign")));
			this.txtPlanHorizon.Visible = ((bool)(resources.GetObject("txtPlanHorizon.Visible")));
			this.txtPlanHorizon.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("txtPlanHorizon.VisibleButtons")));
			// 
			// lblPlanHorizon
			// 
			this.lblPlanHorizon.AccessibleDescription = resources.GetString("lblPlanHorizon.AccessibleDescription");
			this.lblPlanHorizon.AccessibleName = resources.GetString("lblPlanHorizon.AccessibleName");
			this.lblPlanHorizon.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblPlanHorizon.Anchor")));
			this.lblPlanHorizon.AutoSize = ((bool)(resources.GetObject("lblPlanHorizon.AutoSize")));
			this.lblPlanHorizon.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblPlanHorizon.Dock")));
			this.lblPlanHorizon.Enabled = ((bool)(resources.GetObject("lblPlanHorizon.Enabled")));
			this.lblPlanHorizon.Font = ((System.Drawing.Font)(resources.GetObject("lblPlanHorizon.Font")));
			this.lblPlanHorizon.Image = ((System.Drawing.Image)(resources.GetObject("lblPlanHorizon.Image")));
			this.lblPlanHorizon.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPlanHorizon.ImageAlign")));
			this.lblPlanHorizon.ImageIndex = ((int)(resources.GetObject("lblPlanHorizon.ImageIndex")));
			this.lblPlanHorizon.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblPlanHorizon.ImeMode")));
			this.lblPlanHorizon.Location = ((System.Drawing.Point)(resources.GetObject("lblPlanHorizon.Location")));
			this.lblPlanHorizon.Name = "lblPlanHorizon";
			this.lblPlanHorizon.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblPlanHorizon.RightToLeft")));
			this.lblPlanHorizon.Size = ((System.Drawing.Size)(resources.GetObject("lblPlanHorizon.Size")));
			this.lblPlanHorizon.TabIndex = ((int)(resources.GetObject("lblPlanHorizon.TabIndex")));
			this.lblPlanHorizon.Text = resources.GetString("lblPlanHorizon.Text");
			this.lblPlanHorizon.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPlanHorizon.TextAlign")));
			this.lblPlanHorizon.Visible = ((bool)(resources.GetObject("lblPlanHorizon.Visible")));
			// 
			// txtMPSDescription
			// 
			this.txtMPSDescription.AccessibleDescription = resources.GetString("txtMPSDescription.AccessibleDescription");
			this.txtMPSDescription.AccessibleName = resources.GetString("txtMPSDescription.AccessibleName");
			this.txtMPSDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtMPSDescription.Anchor")));
			this.txtMPSDescription.AutoSize = ((bool)(resources.GetObject("txtMPSDescription.AutoSize")));
			this.txtMPSDescription.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtMPSDescription.BackgroundImage")));
			this.txtMPSDescription.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtMPSDescription.Dock")));
			this.txtMPSDescription.Enabled = ((bool)(resources.GetObject("txtMPSDescription.Enabled")));
			this.txtMPSDescription.Font = ((System.Drawing.Font)(resources.GetObject("txtMPSDescription.Font")));
			this.txtMPSDescription.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtMPSDescription.ImeMode")));
			this.txtMPSDescription.Location = ((System.Drawing.Point)(resources.GetObject("txtMPSDescription.Location")));
			this.txtMPSDescription.MaxLength = ((int)(resources.GetObject("txtMPSDescription.MaxLength")));
			this.txtMPSDescription.Multiline = ((bool)(resources.GetObject("txtMPSDescription.Multiline")));
			this.txtMPSDescription.Name = "txtMPSDescription";
			this.txtMPSDescription.PasswordChar = ((char)(resources.GetObject("txtMPSDescription.PasswordChar")));
			this.txtMPSDescription.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtMPSDescription.RightToLeft")));
			this.txtMPSDescription.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtMPSDescription.ScrollBars")));
			this.txtMPSDescription.Size = ((System.Drawing.Size)(resources.GetObject("txtMPSDescription.Size")));
			this.txtMPSDescription.TabIndex = ((int)(resources.GetObject("txtMPSDescription.TabIndex")));
			this.txtMPSDescription.Text = resources.GetString("txtMPSDescription.Text");
			this.txtMPSDescription.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtMPSDescription.TextAlign")));
			this.txtMPSDescription.Visible = ((bool)(resources.GetObject("txtMPSDescription.Visible")));
			this.txtMPSDescription.WordWrap = ((bool)(resources.GetObject("txtMPSDescription.WordWrap")));
			// 
			// txtGenDateTime
			// 
			this.txtGenDateTime.AcceptsEscape = ((bool)(resources.GetObject("txtGenDateTime.AcceptsEscape")));
			this.txtGenDateTime.AccessibleDescription = resources.GetString("txtGenDateTime.AccessibleDescription");
			this.txtGenDateTime.AccessibleName = resources.GetString("txtGenDateTime.AccessibleName");
			this.txtGenDateTime.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtGenDateTime.Anchor")));
			this.txtGenDateTime.AutoSize = ((bool)(resources.GetObject("txtGenDateTime.AutoSize")));
			this.txtGenDateTime.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtGenDateTime.BackgroundImage")));
			this.txtGenDateTime.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("txtGenDateTime.BorderStyle")));
			// 
			// txtGenDateTime.Calendar
			// 
			this.txtGenDateTime.Calendar.AccessibleDescription = resources.GetString("txtGenDateTime.Calendar.AccessibleDescription");
			this.txtGenDateTime.Calendar.AccessibleName = resources.GetString("txtGenDateTime.Calendar.AccessibleName");
			this.txtGenDateTime.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("txtGenDateTime.Calendar.AnnuallyBoldedDates")));
			this.txtGenDateTime.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtGenDateTime.Calendar.BackgroundImage")));
			this.txtGenDateTime.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("txtGenDateTime.Calendar.BoldedDates")));
			this.txtGenDateTime.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("txtGenDateTime.Calendar.CalendarDimensions")));
			this.txtGenDateTime.Calendar.Enabled = ((bool)(resources.GetObject("txtGenDateTime.Calendar.Enabled")));
			this.txtGenDateTime.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("txtGenDateTime.Calendar.FirstDayOfWeek")));
			this.txtGenDateTime.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("txtGenDateTime.Calendar.Font")));
			this.txtGenDateTime.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtGenDateTime.Calendar.ImeMode")));
			this.txtGenDateTime.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("txtGenDateTime.Calendar.MonthlyBoldedDates")));
			this.txtGenDateTime.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtGenDateTime.Calendar.RightToLeft")));
			this.txtGenDateTime.Calendar.ShowClearButton = ((bool)(resources.GetObject("txtGenDateTime.Calendar.ShowClearButton")));
			this.txtGenDateTime.Calendar.ShowTodayButton = ((bool)(resources.GetObject("txtGenDateTime.Calendar.ShowTodayButton")));
			this.txtGenDateTime.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("txtGenDateTime.Calendar.ShowWeekNumbers")));
			this.txtGenDateTime.CaseSensitive = ((bool)(resources.GetObject("txtGenDateTime.CaseSensitive")));
			this.txtGenDateTime.Culture = ((int)(resources.GetObject("txtGenDateTime.Culture")));
			this.txtGenDateTime.CurrentTimeZone = ((bool)(resources.GetObject("txtGenDateTime.CurrentTimeZone")));
			this.txtGenDateTime.CustomFormat = resources.GetString("txtGenDateTime.CustomFormat");
			this.txtGenDateTime.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("txtGenDateTime.DaylightTimeAdjustment")));
			this.txtGenDateTime.DisplayFormat.CustomFormat = resources.GetString("txtGenDateTime.DisplayFormat.CustomFormat");
			this.txtGenDateTime.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtGenDateTime.DisplayFormat.FormatType")));
			this.txtGenDateTime.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("txtGenDateTime.DisplayFormat.Inherit")));
			this.txtGenDateTime.DisplayFormat.NullText = resources.GetString("txtGenDateTime.DisplayFormat.NullText");
			this.txtGenDateTime.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("txtGenDateTime.DisplayFormat.TrimEnd")));
			this.txtGenDateTime.DisplayFormat.TrimStart = ((bool)(resources.GetObject("txtGenDateTime.DisplayFormat.TrimStart")));
			this.txtGenDateTime.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtGenDateTime.Dock")));
			this.txtGenDateTime.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("txtGenDateTime.DropDownFormAlign")));
			this.txtGenDateTime.EditFormat.CustomFormat = resources.GetString("txtGenDateTime.EditFormat.CustomFormat");
			this.txtGenDateTime.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtGenDateTime.EditFormat.FormatType")));
			this.txtGenDateTime.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("txtGenDateTime.EditFormat.Inherit")));
			this.txtGenDateTime.EditFormat.NullText = resources.GetString("txtGenDateTime.EditFormat.NullText");
			this.txtGenDateTime.EditFormat.TrimEnd = ((bool)(resources.GetObject("txtGenDateTime.EditFormat.TrimEnd")));
			this.txtGenDateTime.EditFormat.TrimStart = ((bool)(resources.GetObject("txtGenDateTime.EditFormat.TrimStart")));
			this.txtGenDateTime.EditMask = resources.GetString("txtGenDateTime.EditMask");
			this.txtGenDateTime.EmptyAsNull = ((bool)(resources.GetObject("txtGenDateTime.EmptyAsNull")));
			this.txtGenDateTime.Enabled = ((bool)(resources.GetObject("txtGenDateTime.Enabled")));
			this.txtGenDateTime.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("txtGenDateTime.ErrorInfo.BeepOnError")));
			this.txtGenDateTime.ErrorInfo.ErrorMessage = resources.GetString("txtGenDateTime.ErrorInfo.ErrorMessage");
			this.txtGenDateTime.ErrorInfo.ErrorMessageCaption = resources.GetString("txtGenDateTime.ErrorInfo.ErrorMessageCaption");
			this.txtGenDateTime.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("txtGenDateTime.ErrorInfo.ShowErrorMessage")));
			this.txtGenDateTime.ErrorInfo.ValueOnError = ((object)(resources.GetObject("txtGenDateTime.ErrorInfo.ValueOnError")));
			this.txtGenDateTime.Font = ((System.Drawing.Font)(resources.GetObject("txtGenDateTime.Font")));
			this.txtGenDateTime.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtGenDateTime.FormatType")));
			this.txtGenDateTime.GapHeight = ((int)(resources.GetObject("txtGenDateTime.GapHeight")));
			this.txtGenDateTime.GMTOffset = ((System.TimeSpan)(resources.GetObject("txtGenDateTime.GMTOffset")));
			this.txtGenDateTime.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtGenDateTime.ImeMode")));
			this.txtGenDateTime.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("txtGenDateTime.InitialSelection")));
			this.txtGenDateTime.Location = ((System.Drawing.Point)(resources.GetObject("txtGenDateTime.Location")));
			this.txtGenDateTime.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("txtGenDateTime.MaskInfo.AutoTabWhenFilled")));
			this.txtGenDateTime.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("txtGenDateTime.MaskInfo.CaseSensitive")));
			this.txtGenDateTime.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("txtGenDateTime.MaskInfo.CopyWithLiterals")));
			this.txtGenDateTime.MaskInfo.EditMask = resources.GetString("txtGenDateTime.MaskInfo.EditMask");
			this.txtGenDateTime.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("txtGenDateTime.MaskInfo.EmptyAsNull")));
			this.txtGenDateTime.MaskInfo.ErrorMessage = resources.GetString("txtGenDateTime.MaskInfo.ErrorMessage");
			this.txtGenDateTime.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("txtGenDateTime.MaskInfo.Inherit")));
			this.txtGenDateTime.MaskInfo.PromptChar = ((char)(resources.GetObject("txtGenDateTime.MaskInfo.PromptChar")));
			this.txtGenDateTime.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("txtGenDateTime.MaskInfo.ShowLiterals")));
			this.txtGenDateTime.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("txtGenDateTime.MaskInfo.StoredEmptyChar")));
			this.txtGenDateTime.MaxLength = ((int)(resources.GetObject("txtGenDateTime.MaxLength")));
			this.txtGenDateTime.Name = "txtGenDateTime";
			this.txtGenDateTime.NullText = resources.GetString("txtGenDateTime.NullText");
			this.txtGenDateTime.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("txtGenDateTime.ParseInfo.CaseSensitive")));
			this.txtGenDateTime.ParseInfo.CustomFormat = resources.GetString("txtGenDateTime.ParseInfo.CustomFormat");
			this.txtGenDateTime.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("txtGenDateTime.ParseInfo.DateTimeStyle")));
			this.txtGenDateTime.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("txtGenDateTime.ParseInfo.EmptyAsNull")));
			this.txtGenDateTime.ParseInfo.ErrorMessage = resources.GetString("txtGenDateTime.ParseInfo.ErrorMessage");
			this.txtGenDateTime.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtGenDateTime.ParseInfo.FormatType")));
			this.txtGenDateTime.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("txtGenDateTime.ParseInfo.Inherit")));
			this.txtGenDateTime.ParseInfo.NullText = resources.GetString("txtGenDateTime.ParseInfo.NullText");
			this.txtGenDateTime.ParseInfo.TrimEnd = ((bool)(resources.GetObject("txtGenDateTime.ParseInfo.TrimEnd")));
			this.txtGenDateTime.ParseInfo.TrimStart = ((bool)(resources.GetObject("txtGenDateTime.ParseInfo.TrimStart")));
			this.txtGenDateTime.PasswordChar = ((char)(resources.GetObject("txtGenDateTime.PasswordChar")));
			this.txtGenDateTime.PostValidation.CaseSensitive = ((bool)(resources.GetObject("txtGenDateTime.PostValidation.CaseSensitive")));
			this.txtGenDateTime.PostValidation.ErrorMessage = resources.GetString("txtGenDateTime.PostValidation.ErrorMessage");
			this.txtGenDateTime.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("txtGenDateTime.PostValidation.Inherit")));
			this.txtGenDateTime.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("txtGenDateTime.PostValidation.Validation")));
			this.txtGenDateTime.PostValidation.Values = ((System.Array)(resources.GetObject("txtGenDateTime.PostValidation.Values")));
			this.txtGenDateTime.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("txtGenDateTime.PostValidation.ValuesExcluded")));
			this.txtGenDateTime.PreValidation.CaseSensitive = ((bool)(resources.GetObject("txtGenDateTime.PreValidation.CaseSensitive")));
			this.txtGenDateTime.PreValidation.ErrorMessage = resources.GetString("txtGenDateTime.PreValidation.ErrorMessage");
			this.txtGenDateTime.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("txtGenDateTime.PreValidation.Inherit")));
			this.txtGenDateTime.PreValidation.ItemSeparator = resources.GetString("txtGenDateTime.PreValidation.ItemSeparator");
			this.txtGenDateTime.PreValidation.PatternString = resources.GetString("txtGenDateTime.PreValidation.PatternString");
			this.txtGenDateTime.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("txtGenDateTime.PreValidation.RegexOptions")));
			this.txtGenDateTime.PreValidation.TrimEnd = ((bool)(resources.GetObject("txtGenDateTime.PreValidation.TrimEnd")));
			this.txtGenDateTime.PreValidation.TrimStart = ((bool)(resources.GetObject("txtGenDateTime.PreValidation.TrimStart")));
			this.txtGenDateTime.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("txtGenDateTime.PreValidation.Validation")));
			this.txtGenDateTime.ReadOnly = true;
			this.txtGenDateTime.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtGenDateTime.RightToLeft")));
			this.txtGenDateTime.ShowFocusRectangle = ((bool)(resources.GetObject("txtGenDateTime.ShowFocusRectangle")));
			this.txtGenDateTime.Size = ((System.Drawing.Size)(resources.GetObject("txtGenDateTime.Size")));
			this.txtGenDateTime.TabIndex = ((int)(resources.GetObject("txtGenDateTime.TabIndex")));
			this.txtGenDateTime.Tag = ((object)(resources.GetObject("txtGenDateTime.Tag")));
			this.txtGenDateTime.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtGenDateTime.TextAlign")));
			this.txtGenDateTime.TrimEnd = ((bool)(resources.GetObject("txtGenDateTime.TrimEnd")));
			this.txtGenDateTime.TrimStart = ((bool)(resources.GetObject("txtGenDateTime.TrimStart")));
			this.txtGenDateTime.UserCultureOverride = ((bool)(resources.GetObject("txtGenDateTime.UserCultureOverride")));
			this.txtGenDateTime.Value = ((object)(resources.GetObject("txtGenDateTime.Value")));
			this.txtGenDateTime.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("txtGenDateTime.VerticalAlign")));
			this.txtGenDateTime.Visible = ((bool)(resources.GetObject("txtGenDateTime.Visible")));
			this.txtGenDateTime.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("txtGenDateTime.VisibleButtons")));
			// 
			// btnProcess
			// 
			this.btnProcess.AccessibleDescription = resources.GetString("btnProcess.AccessibleDescription");
			this.btnProcess.AccessibleName = resources.GetString("btnProcess.AccessibleName");
			this.btnProcess.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnProcess.Anchor")));
			this.btnProcess.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnProcess.BackgroundImage")));
			this.btnProcess.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnProcess.Dock")));
			this.btnProcess.Enabled = ((bool)(resources.GetObject("btnProcess.Enabled")));
			this.btnProcess.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnProcess.FlatStyle")));
			this.btnProcess.Font = ((System.Drawing.Font)(resources.GetObject("btnProcess.Font")));
			this.btnProcess.Image = ((System.Drawing.Image)(resources.GetObject("btnProcess.Image")));
			this.btnProcess.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnProcess.ImageAlign")));
			this.btnProcess.ImageIndex = ((int)(resources.GetObject("btnProcess.ImageIndex")));
			this.btnProcess.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnProcess.ImeMode")));
			this.btnProcess.Location = ((System.Drawing.Point)(resources.GetObject("btnProcess.Location")));
			this.btnProcess.Name = "btnProcess";
			this.btnProcess.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnProcess.RightToLeft")));
			this.btnProcess.Size = ((System.Drawing.Size)(resources.GetObject("btnProcess.Size")));
			this.btnProcess.TabIndex = ((int)(resources.GetObject("btnProcess.TabIndex")));
			this.btnProcess.Text = resources.GetString("btnProcess.Text");
			this.btnProcess.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnProcess.TextAlign")));
			this.btnProcess.Visible = ((bool)(resources.GetObject("btnProcess.Visible")));
			this.btnProcess.Click += new System.EventHandler(this.btnProcess_Click);
			// 
			// grpCheck
			// 
			this.grpCheck.AccessibleDescription = resources.GetString("grpCheck.AccessibleDescription");
			this.grpCheck.AccessibleName = resources.GetString("grpCheck.AccessibleName");
			this.grpCheck.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("grpCheck.Anchor")));
			this.grpCheck.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("grpCheck.BackgroundImage")));
			this.grpCheck.Controls.Add(this.lblNumbersOfDays);
			this.grpCheck.Controls.Add(this.txtNumbersOfDays);
			this.grpCheck.Controls.Add(this.chkReturnToVendor);
			this.grpCheck.Controls.Add(this.chkPONotReceipt);
			this.grpCheck.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("grpCheck.Dock")));
			this.grpCheck.Enabled = ((bool)(resources.GetObject("grpCheck.Enabled")));
			this.grpCheck.Font = ((System.Drawing.Font)(resources.GetObject("grpCheck.Font")));
			this.grpCheck.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("grpCheck.ImeMode")));
			this.grpCheck.Location = ((System.Drawing.Point)(resources.GetObject("grpCheck.Location")));
			this.grpCheck.Name = "grpCheck";
			this.grpCheck.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("grpCheck.RightToLeft")));
			this.grpCheck.Size = ((System.Drawing.Size)(resources.GetObject("grpCheck.Size")));
			this.grpCheck.TabIndex = ((int)(resources.GetObject("grpCheck.TabIndex")));
			this.grpCheck.TabStop = false;
			this.grpCheck.Text = resources.GetString("grpCheck.Text");
			this.grpCheck.Visible = ((bool)(resources.GetObject("grpCheck.Visible")));
			// 
			// lblNumbersOfDays
			// 
			this.lblNumbersOfDays.AccessibleDescription = resources.GetString("lblNumbersOfDays.AccessibleDescription");
			this.lblNumbersOfDays.AccessibleName = resources.GetString("lblNumbersOfDays.AccessibleName");
			this.lblNumbersOfDays.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblNumbersOfDays.Anchor")));
			this.lblNumbersOfDays.AutoSize = ((bool)(resources.GetObject("lblNumbersOfDays.AutoSize")));
			this.lblNumbersOfDays.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblNumbersOfDays.Dock")));
			this.lblNumbersOfDays.Enabled = ((bool)(resources.GetObject("lblNumbersOfDays.Enabled")));
			this.lblNumbersOfDays.Font = ((System.Drawing.Font)(resources.GetObject("lblNumbersOfDays.Font")));
			this.lblNumbersOfDays.Image = ((System.Drawing.Image)(resources.GetObject("lblNumbersOfDays.Image")));
			this.lblNumbersOfDays.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblNumbersOfDays.ImageAlign")));
			this.lblNumbersOfDays.ImageIndex = ((int)(resources.GetObject("lblNumbersOfDays.ImageIndex")));
			this.lblNumbersOfDays.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblNumbersOfDays.ImeMode")));
			this.lblNumbersOfDays.Location = ((System.Drawing.Point)(resources.GetObject("lblNumbersOfDays.Location")));
			this.lblNumbersOfDays.Name = "lblNumbersOfDays";
			this.lblNumbersOfDays.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblNumbersOfDays.RightToLeft")));
			this.lblNumbersOfDays.Size = ((System.Drawing.Size)(resources.GetObject("lblNumbersOfDays.Size")));
			this.lblNumbersOfDays.TabIndex = ((int)(resources.GetObject("lblNumbersOfDays.TabIndex")));
			this.lblNumbersOfDays.Text = resources.GetString("lblNumbersOfDays.Text");
			this.lblNumbersOfDays.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblNumbersOfDays.TextAlign")));
			this.lblNumbersOfDays.Visible = ((bool)(resources.GetObject("lblNumbersOfDays.Visible")));
			this.lblNumbersOfDays.Click += new System.EventHandler(this.lblNumbersOfDays_Click);
			// 
			// txtNumbersOfDays
			// 
			this.txtNumbersOfDays.AcceptsEscape = ((bool)(resources.GetObject("txtNumbersOfDays.AcceptsEscape")));
			this.txtNumbersOfDays.AccessibleDescription = resources.GetString("txtNumbersOfDays.AccessibleDescription");
			this.txtNumbersOfDays.AccessibleName = resources.GetString("txtNumbersOfDays.AccessibleName");
			this.txtNumbersOfDays.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtNumbersOfDays.Anchor")));
			this.txtNumbersOfDays.AutoSize = ((bool)(resources.GetObject("txtNumbersOfDays.AutoSize")));
			this.txtNumbersOfDays.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtNumbersOfDays.BackgroundImage")));
			this.txtNumbersOfDays.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("txtNumbersOfDays.BorderStyle")));
			// 
			// txtNumbersOfDays.Calculator
			// 
			this.txtNumbersOfDays.Calculator.AccessibleDescription = resources.GetString("txtNumbersOfDays.Calculator.AccessibleDescription");
			this.txtNumbersOfDays.Calculator.AccessibleName = resources.GetString("txtNumbersOfDays.Calculator.AccessibleName");
			this.txtNumbersOfDays.Calculator.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtNumbersOfDays.Calculator.BackgroundImage")));
			this.txtNumbersOfDays.Calculator.ButtonFlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("txtNumbersOfDays.Calculator.ButtonFlatStyle")));
			this.txtNumbersOfDays.Calculator.DisplayFormat = resources.GetString("txtNumbersOfDays.Calculator.DisplayFormat");
			this.txtNumbersOfDays.Calculator.Font = ((System.Drawing.Font)(resources.GetObject("txtNumbersOfDays.Calculator.Font")));
			this.txtNumbersOfDays.Calculator.FormatOnClose = ((bool)(resources.GetObject("txtNumbersOfDays.Calculator.FormatOnClose")));
			this.txtNumbersOfDays.Calculator.StoredFormat = resources.GetString("txtNumbersOfDays.Calculator.StoredFormat");
			this.txtNumbersOfDays.Calculator.UIStrings.Content = ((string[])(resources.GetObject("txtNumbersOfDays.Calculator.UIStrings.Content")));
			this.txtNumbersOfDays.CaseSensitive = ((bool)(resources.GetObject("txtNumbersOfDays.CaseSensitive")));
			this.txtNumbersOfDays.Culture = ((int)(resources.GetObject("txtNumbersOfDays.Culture")));
			this.txtNumbersOfDays.CustomFormat = resources.GetString("txtNumbersOfDays.CustomFormat");
			this.txtNumbersOfDays.DataType = ((System.Type)(resources.GetObject("txtNumbersOfDays.DataType")));
			this.txtNumbersOfDays.DisplayFormat.CustomFormat = resources.GetString("txtNumbersOfDays.DisplayFormat.CustomFormat");
			this.txtNumbersOfDays.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtNumbersOfDays.DisplayFormat.FormatType")));
			this.txtNumbersOfDays.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("txtNumbersOfDays.DisplayFormat.Inherit")));
			this.txtNumbersOfDays.DisplayFormat.NullText = resources.GetString("txtNumbersOfDays.DisplayFormat.NullText");
			this.txtNumbersOfDays.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("txtNumbersOfDays.DisplayFormat.TrimEnd")));
			this.txtNumbersOfDays.DisplayFormat.TrimStart = ((bool)(resources.GetObject("txtNumbersOfDays.DisplayFormat.TrimStart")));
			this.txtNumbersOfDays.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtNumbersOfDays.Dock")));
			this.txtNumbersOfDays.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("txtNumbersOfDays.DropDownFormAlign")));
			this.txtNumbersOfDays.EditFormat.CustomFormat = resources.GetString("txtNumbersOfDays.EditFormat.CustomFormat");
			this.txtNumbersOfDays.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtNumbersOfDays.EditFormat.FormatType")));
			this.txtNumbersOfDays.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("txtNumbersOfDays.EditFormat.Inherit")));
			this.txtNumbersOfDays.EditFormat.NullText = resources.GetString("txtNumbersOfDays.EditFormat.NullText");
			this.txtNumbersOfDays.EditFormat.TrimEnd = ((bool)(resources.GetObject("txtNumbersOfDays.EditFormat.TrimEnd")));
			this.txtNumbersOfDays.EditFormat.TrimStart = ((bool)(resources.GetObject("txtNumbersOfDays.EditFormat.TrimStart")));
			this.txtNumbersOfDays.EditMask = resources.GetString("txtNumbersOfDays.EditMask");
			this.txtNumbersOfDays.EmptyAsNull = ((bool)(resources.GetObject("txtNumbersOfDays.EmptyAsNull")));
			this.txtNumbersOfDays.Enabled = ((bool)(resources.GetObject("txtNumbersOfDays.Enabled")));
			this.txtNumbersOfDays.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("txtNumbersOfDays.ErrorInfo.BeepOnError")));
			this.txtNumbersOfDays.ErrorInfo.ErrorMessage = resources.GetString("txtNumbersOfDays.ErrorInfo.ErrorMessage");
			this.txtNumbersOfDays.ErrorInfo.ErrorMessageCaption = resources.GetString("txtNumbersOfDays.ErrorInfo.ErrorMessageCaption");
			this.txtNumbersOfDays.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("txtNumbersOfDays.ErrorInfo.ShowErrorMessage")));
			this.txtNumbersOfDays.ErrorInfo.ValueOnError = ((object)(resources.GetObject("txtNumbersOfDays.ErrorInfo.ValueOnError")));
			this.txtNumbersOfDays.Font = ((System.Drawing.Font)(resources.GetObject("txtNumbersOfDays.Font")));
			this.txtNumbersOfDays.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtNumbersOfDays.FormatType")));
			this.txtNumbersOfDays.GapHeight = ((int)(resources.GetObject("txtNumbersOfDays.GapHeight")));
			this.txtNumbersOfDays.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtNumbersOfDays.ImeMode")));
			this.txtNumbersOfDays.Increment = ((object)(resources.GetObject("txtNumbersOfDays.Increment")));
			this.txtNumbersOfDays.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("txtNumbersOfDays.InitialSelection")));
			this.txtNumbersOfDays.Location = ((System.Drawing.Point)(resources.GetObject("txtNumbersOfDays.Location")));
			this.txtNumbersOfDays.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("txtNumbersOfDays.MaskInfo.AutoTabWhenFilled")));
			this.txtNumbersOfDays.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("txtNumbersOfDays.MaskInfo.CaseSensitive")));
			this.txtNumbersOfDays.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("txtNumbersOfDays.MaskInfo.CopyWithLiterals")));
			this.txtNumbersOfDays.MaskInfo.EditMask = resources.GetString("txtNumbersOfDays.MaskInfo.EditMask");
			this.txtNumbersOfDays.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("txtNumbersOfDays.MaskInfo.EmptyAsNull")));
			this.txtNumbersOfDays.MaskInfo.ErrorMessage = resources.GetString("txtNumbersOfDays.MaskInfo.ErrorMessage");
			this.txtNumbersOfDays.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("txtNumbersOfDays.MaskInfo.Inherit")));
			this.txtNumbersOfDays.MaskInfo.PromptChar = ((char)(resources.GetObject("txtNumbersOfDays.MaskInfo.PromptChar")));
			this.txtNumbersOfDays.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("txtNumbersOfDays.MaskInfo.ShowLiterals")));
			this.txtNumbersOfDays.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("txtNumbersOfDays.MaskInfo.StoredEmptyChar")));
			this.txtNumbersOfDays.MaxLength = ((int)(resources.GetObject("txtNumbersOfDays.MaxLength")));
			this.txtNumbersOfDays.Name = "txtNumbersOfDays";
			this.txtNumbersOfDays.NullText = resources.GetString("txtNumbersOfDays.NullText");
			this.txtNumbersOfDays.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("txtNumbersOfDays.ParseInfo.CaseSensitive")));
			this.txtNumbersOfDays.ParseInfo.CustomFormat = resources.GetString("txtNumbersOfDays.ParseInfo.CustomFormat");
			this.txtNumbersOfDays.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("txtNumbersOfDays.ParseInfo.EmptyAsNull")));
			this.txtNumbersOfDays.ParseInfo.ErrorMessage = resources.GetString("txtNumbersOfDays.ParseInfo.ErrorMessage");
			this.txtNumbersOfDays.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtNumbersOfDays.ParseInfo.FormatType")));
			this.txtNumbersOfDays.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("txtNumbersOfDays.ParseInfo.Inherit")));
			this.txtNumbersOfDays.ParseInfo.NullText = resources.GetString("txtNumbersOfDays.ParseInfo.NullText");
			this.txtNumbersOfDays.ParseInfo.NumberStyle = ((C1.Win.C1Input.NumberStyleFlags)(resources.GetObject("txtNumbersOfDays.ParseInfo.NumberStyle")));
			this.txtNumbersOfDays.ParseInfo.TrimEnd = ((bool)(resources.GetObject("txtNumbersOfDays.ParseInfo.TrimEnd")));
			this.txtNumbersOfDays.ParseInfo.TrimStart = ((bool)(resources.GetObject("txtNumbersOfDays.ParseInfo.TrimStart")));
			this.txtNumbersOfDays.PasswordChar = ((char)(resources.GetObject("txtNumbersOfDays.PasswordChar")));
			this.txtNumbersOfDays.PostValidation.CaseSensitive = ((bool)(resources.GetObject("txtNumbersOfDays.PostValidation.CaseSensitive")));
			this.txtNumbersOfDays.PostValidation.ErrorMessage = resources.GetString("txtNumbersOfDays.PostValidation.ErrorMessage");
			this.txtNumbersOfDays.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("txtNumbersOfDays.PostValidation.Inherit")));
			this.txtNumbersOfDays.PostValidation.Intervals.AddRange(new C1.Win.C1Input.ValueInterval[] {
																										   ((C1.Win.C1Input.ValueInterval)(resources.GetObject("txtNumbersOfDays.PostValidation.Intervals")))});
			this.txtNumbersOfDays.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("txtNumbersOfDays.PostValidation.Validation")));
			this.txtNumbersOfDays.PostValidation.Values = ((System.Array)(resources.GetObject("txtNumbersOfDays.PostValidation.Values")));
			this.txtNumbersOfDays.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("txtNumbersOfDays.PostValidation.ValuesExcluded")));
			this.txtNumbersOfDays.PreValidation.CaseSensitive = ((bool)(resources.GetObject("txtNumbersOfDays.PreValidation.CaseSensitive")));
			this.txtNumbersOfDays.PreValidation.ErrorMessage = resources.GetString("txtNumbersOfDays.PreValidation.ErrorMessage");
			this.txtNumbersOfDays.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("txtNumbersOfDays.PreValidation.Inherit")));
			this.txtNumbersOfDays.PreValidation.ItemSeparator = resources.GetString("txtNumbersOfDays.PreValidation.ItemSeparator");
			this.txtNumbersOfDays.PreValidation.PatternString = resources.GetString("txtNumbersOfDays.PreValidation.PatternString");
			this.txtNumbersOfDays.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("txtNumbersOfDays.PreValidation.RegexOptions")));
			this.txtNumbersOfDays.PreValidation.TrimEnd = ((bool)(resources.GetObject("txtNumbersOfDays.PreValidation.TrimEnd")));
			this.txtNumbersOfDays.PreValidation.TrimStart = ((bool)(resources.GetObject("txtNumbersOfDays.PreValidation.TrimStart")));
			this.txtNumbersOfDays.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("txtNumbersOfDays.PreValidation.Validation")));
			this.txtNumbersOfDays.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtNumbersOfDays.RightToLeft")));
			this.txtNumbersOfDays.ShowFocusRectangle = ((bool)(resources.GetObject("txtNumbersOfDays.ShowFocusRectangle")));
			this.txtNumbersOfDays.Size = ((System.Drawing.Size)(resources.GetObject("txtNumbersOfDays.Size")));
			this.txtNumbersOfDays.TabIndex = ((int)(resources.GetObject("txtNumbersOfDays.TabIndex")));
			this.txtNumbersOfDays.Tag = ((object)(resources.GetObject("txtNumbersOfDays.Tag")));
			this.txtNumbersOfDays.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtNumbersOfDays.TextAlign")));
			this.txtNumbersOfDays.TrimEnd = ((bool)(resources.GetObject("txtNumbersOfDays.TrimEnd")));
			this.txtNumbersOfDays.TrimStart = ((bool)(resources.GetObject("txtNumbersOfDays.TrimStart")));
			this.txtNumbersOfDays.UserCultureOverride = ((bool)(resources.GetObject("txtNumbersOfDays.UserCultureOverride")));
			this.txtNumbersOfDays.Value = ((object)(resources.GetObject("txtNumbersOfDays.Value")));
			this.txtNumbersOfDays.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("txtNumbersOfDays.VerticalAlign")));
			this.txtNumbersOfDays.Visible = ((bool)(resources.GetObject("txtNumbersOfDays.Visible")));
			this.txtNumbersOfDays.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("txtNumbersOfDays.VisibleButtons")));
			// 
			// chkReturnToVendor
			// 
			this.chkReturnToVendor.AccessibleDescription = resources.GetString("chkReturnToVendor.AccessibleDescription");
			this.chkReturnToVendor.AccessibleName = resources.GetString("chkReturnToVendor.AccessibleName");
			this.chkReturnToVendor.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("chkReturnToVendor.Anchor")));
			this.chkReturnToVendor.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("chkReturnToVendor.Appearance")));
			this.chkReturnToVendor.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("chkReturnToVendor.BackgroundImage")));
			this.chkReturnToVendor.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkReturnToVendor.CheckAlign")));
			this.chkReturnToVendor.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("chkReturnToVendor.Dock")));
			this.chkReturnToVendor.Enabled = ((bool)(resources.GetObject("chkReturnToVendor.Enabled")));
			this.chkReturnToVendor.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("chkReturnToVendor.FlatStyle")));
			this.chkReturnToVendor.Font = ((System.Drawing.Font)(resources.GetObject("chkReturnToVendor.Font")));
			this.chkReturnToVendor.Image = ((System.Drawing.Image)(resources.GetObject("chkReturnToVendor.Image")));
			this.chkReturnToVendor.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkReturnToVendor.ImageAlign")));
			this.chkReturnToVendor.ImageIndex = ((int)(resources.GetObject("chkReturnToVendor.ImageIndex")));
			this.chkReturnToVendor.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("chkReturnToVendor.ImeMode")));
			this.chkReturnToVendor.Location = ((System.Drawing.Point)(resources.GetObject("chkReturnToVendor.Location")));
			this.chkReturnToVendor.Name = "chkReturnToVendor";
			this.chkReturnToVendor.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("chkReturnToVendor.RightToLeft")));
			this.chkReturnToVendor.Size = ((System.Drawing.Size)(resources.GetObject("chkReturnToVendor.Size")));
			this.chkReturnToVendor.TabIndex = ((int)(resources.GetObject("chkReturnToVendor.TabIndex")));
			this.chkReturnToVendor.Text = resources.GetString("chkReturnToVendor.Text");
			this.chkReturnToVendor.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkReturnToVendor.TextAlign")));
			this.chkReturnToVendor.Visible = ((bool)(resources.GetObject("chkReturnToVendor.Visible")));
			// 
			// chkPONotReceipt
			// 
			this.chkPONotReceipt.AccessibleDescription = resources.GetString("chkPONotReceipt.AccessibleDescription");
			this.chkPONotReceipt.AccessibleName = resources.GetString("chkPONotReceipt.AccessibleName");
			this.chkPONotReceipt.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("chkPONotReceipt.Anchor")));
			this.chkPONotReceipt.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("chkPONotReceipt.Appearance")));
			this.chkPONotReceipt.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("chkPONotReceipt.BackgroundImage")));
			this.chkPONotReceipt.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkPONotReceipt.CheckAlign")));
			this.chkPONotReceipt.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("chkPONotReceipt.Dock")));
			this.chkPONotReceipt.Enabled = ((bool)(resources.GetObject("chkPONotReceipt.Enabled")));
			this.chkPONotReceipt.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("chkPONotReceipt.FlatStyle")));
			this.chkPONotReceipt.Font = ((System.Drawing.Font)(resources.GetObject("chkPONotReceipt.Font")));
			this.chkPONotReceipt.Image = ((System.Drawing.Image)(resources.GetObject("chkPONotReceipt.Image")));
			this.chkPONotReceipt.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkPONotReceipt.ImageAlign")));
			this.chkPONotReceipt.ImageIndex = ((int)(resources.GetObject("chkPONotReceipt.ImageIndex")));
			this.chkPONotReceipt.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("chkPONotReceipt.ImeMode")));
			this.chkPONotReceipt.Location = ((System.Drawing.Point)(resources.GetObject("chkPONotReceipt.Location")));
			this.chkPONotReceipt.Name = "chkPONotReceipt";
			this.chkPONotReceipt.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("chkPONotReceipt.RightToLeft")));
			this.chkPONotReceipt.Size = ((System.Drawing.Size)(resources.GetObject("chkPONotReceipt.Size")));
			this.chkPONotReceipt.TabIndex = ((int)(resources.GetObject("chkPONotReceipt.TabIndex")));
			this.chkPONotReceipt.Text = resources.GetString("chkPONotReceipt.Text");
			this.chkPONotReceipt.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkPONotReceipt.TextAlign")));
			this.chkPONotReceipt.Visible = ((bool)(resources.GetObject("chkPONotReceipt.Visible")));
			this.chkPONotReceipt.CheckedChanged += new System.EventHandler(this.chkPONotReceipt_CheckedChanged);
			// 
			// btnUpdate
			// 
			this.btnUpdate.AccessibleDescription = resources.GetString("btnUpdate.AccessibleDescription");
			this.btnUpdate.AccessibleName = resources.GetString("btnUpdate.AccessibleName");
			this.btnUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnUpdate.Anchor")));
			this.btnUpdate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnUpdate.BackgroundImage")));
			this.btnUpdate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnUpdate.Dock")));
			this.btnUpdate.Enabled = ((bool)(resources.GetObject("btnUpdate.Enabled")));
			this.btnUpdate.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnUpdate.FlatStyle")));
			this.btnUpdate.Font = ((System.Drawing.Font)(resources.GetObject("btnUpdate.Font")));
			this.btnUpdate.Image = ((System.Drawing.Image)(resources.GetObject("btnUpdate.Image")));
			this.btnUpdate.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnUpdate.ImageAlign")));
			this.btnUpdate.ImageIndex = ((int)(resources.GetObject("btnUpdate.ImageIndex")));
			this.btnUpdate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnUpdate.ImeMode")));
			this.btnUpdate.Location = ((System.Drawing.Point)(resources.GetObject("btnUpdate.Location")));
			this.btnUpdate.Name = "btnUpdate";
			this.btnUpdate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnUpdate.RightToLeft")));
			this.btnUpdate.Size = ((System.Drawing.Size)(resources.GetObject("btnUpdate.Size")));
			this.btnUpdate.TabIndex = ((int)(resources.GetObject("btnUpdate.TabIndex")));
			this.btnUpdate.Text = resources.GetString("btnUpdate.Text");
			this.btnUpdate.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnUpdate.TextAlign")));
			this.btnUpdate.Visible = ((bool)(resources.GetObject("btnUpdate.Visible")));
			this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click);
			// 
			// MRPCycleOption
			// 
			this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
			this.AccessibleName = resources.GetString("$this.AccessibleName");
			this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
			this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.CancelButton = this.btnClose;
			this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
			this.Controls.Add(this.btnUpdate);
			this.Controls.Add(this.grpCheck);
			this.Controls.Add(this.btnProcess);
			this.Controls.Add(this.txtGenDateTime);
			this.Controls.Add(this.txtMPSDescription);
			this.Controls.Add(this.txtMPSCycle);
			this.Controls.Add(this.txtCycle);
			this.Controls.Add(this.txtCycleDecription);
			this.Controls.Add(this.dgrdData);
			this.Controls.Add(this.txtPlanHorizon);
			this.Controls.Add(this.lblPlanHorizon);
			this.Controls.Add(this.dtmToDate);
			this.Controls.Add(this.dtmFromDate);
			this.Controls.Add(this.cboCCN);
			this.Controls.Add(this.btnMPSCycleSearch);
			this.Controls.Add(this.btnCycleSearch);
			this.Controls.Add(this.lblMPSCycle);
			this.Controls.Add(this.btnEdit);
			this.Controls.Add(this.btnDelete);
			this.Controls.Add(this.btnSave);
			this.Controls.Add(this.btnAdd);
			this.Controls.Add(this.btnClose);
			this.Controls.Add(this.btnHelp);
			this.Controls.Add(this.btnPrint);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.lblCycleDesc);
			this.Controls.Add(this.lblCycle);
			this.Controls.Add(this.lblGenDate);
			this.Controls.Add(this.lblToDate);
			this.Controls.Add(this.lblFromDate);
			this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
			this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.KeyPreview = true;
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.MaximizeBox = false;
			this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
			this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
			this.Name = "MRPCycleOption";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
			this.Text = resources.GetString("$this.Text");
			this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.MRPCycleOption_KeyDown);
			this.Closing += new System.ComponentModel.CancelEventHandler(this.MRPCycleOption_Closing);
			this.Load += new System.EventHandler(this.MRPCycleOption_Load);
			((System.ComponentModel.ISupportInitialize)(this.dgrdData)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.cboCCN)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmFromDate)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmToDate)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.txtPlanHorizon)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.txtGenDateTime)).EndInit();
			this.grpCheck.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.txtNumbersOfDays)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion
		/// <summary>
		/// MRPCycleOption_Load
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void MRPCycleOption_Load(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".MPSCycleOption_Load()";
			try
			{
				//Set authorization for user
				Security objSecurity = new Security();
				this.Name = THIS;
				if(objSecurity.SetRightForUserOnForm(this, SystemProperty.UserName) == 0)
				{
					this.Close();
					// You don't have the right to view this item
					PCSMessageBox.Show(ErrorCode.MESSAGE_YOU_HAVE_NO_RIGHT_TO_VIEW ,MessageBoxIcon.Warning);
					return;
				}
				// Load combo box
				DataSet dstCCN = boUtil.ListCCN();
				
				cboCCN.DataSource = dstCCN.Tables[MST_CCNTable.TABLE_NAME];
				cboCCN.DisplayMember = MST_CCNTable.CODE_FLD;
				cboCCN.ValueMember = MST_CCNTable.CCNID_FLD;
				FormControlComponents.PutDataIntoC1ComboBox(cboCCN, dstCCN.Tables[MST_CCNTable.TABLE_NAME],MST_CCNTable.CODE_FLD,MST_CCNTable.CCNID_FLD,MST_CCNTable.TABLE_NAME);
				if (SystemProperty.CCNID != 0)
				{
					cboCCN.SelectedValue = SystemProperty.CCNID;
				}
				//Store grid layout
				dtbGridLayOut = FormControlComponents.StoreGridLayout(dgrdData);
				//Switch form Mode
				formMode = EnumAction.Default;
				SwitchFormMode();
				//format txtPlanHorizon
				txtPlanHorizon.FormatType = FormatTypeEnum.CustomFormat;
				txtPlanHorizon.CustomFormat = Constants.INTERGER_NUMBERFORMAT;
				txtNumbersOfDays.FormatType = FormatTypeEnum.CustomFormat;
				txtNumbersOfDays.CustomFormat = Constants.INTERGER_NUMBERFORMAT;
				//format Gendate
				txtGenDateTime.FormatType = FormatTypeEnum.CustomFormat;
				txtGenDateTime.CustomFormat = Constants.DATETIME_FORMAT_HOUR;
				if (pintCycleOptionMasterID != 0)
				{
					FillDataGrid(pintCycleOptionMasterID);
					FormControlComponents.RestoreGridLayout(dgrdData, dtbGridLayOut);
					cboCCN.SelectedValue = CCNID;
					txtCycle.Tag = pintCycleOptionMasterID;
					txtCycle.Text = strCycleText;
					btnEdit.Enabled = true;			
					btnDelete.Enabled = true;
				}
				FormBorderStyle = FormBorderStyle.FixedSingle;
				MaximizeBox = false;
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// ClearForm
		/// </summary>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void ClearForm()
		{
			const string METHOD_NAME = THIS + ".ClearForm()";
			try
			{
				txtCycle.Text = string.Empty;
				txtCycleDecription.Text = string.Empty;
				txtGenDateTime.Value = null;
				dtmToDate.Value = null;
				dtmFromDate.Value = null;
				txtMPSCycle.Text = string.Empty;
				txtPlanHorizon.Value = null;
				txtMPSDescription.Text = string.Empty;
				chkPONotReceipt.Checked = true;
				chkReturnToVendor.Checked = false;
				txtNumbersOfDays.Value = null;
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}
		}
		/// <summary>
		/// ConfigGrid
		/// </summary>
		/// <param name="pblnLock"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void ConfigGrid(bool pblnLock)
		{
			const string METHOD_NAME = THIS + ".ConfigGrid()";
			try
			{
				dgrdData.Enabled = true;
				for (int i =0; i <dgrdData.Splits[0].DisplayColumns.Count; i++)
				{
					dgrdData.Splits[0].DisplayColumns[i].Locked = true;
				}
				dgrdData.Splits[0].DisplayColumns[MTR_MRPCycleOptionDetailTable.ONHAND_FLD].Locked = pblnLock;
				dgrdData.Splits[0].DisplayColumns[MTR_MRPCycleOptionDetailTable.PURCHASEORDER_FLD].Locked = pblnLock;
				dgrdData.Splits[0].DisplayColumns[MTR_MRPCycleOptionDetailTable.SALEORDER_FLD].Locked = pblnLock;
				dgrdData.Splits[0].DisplayColumns[MTR_MRPCycleOptionDetailTable.DEMANDWO_FLD].Locked = pblnLock;
				dgrdData.Splits[0].DisplayColumns[MASTERLOCATIONCODE].Locked = pblnLock;
				//Set check boxes to all columns
				dgrdData.Splits[0].DisplayColumns[MTR_MRPCycleOptionDetailTable.ONHAND_FLD].DataColumn.ValueItems.Presentation  = PresentationEnum.CheckBox;				
				dgrdData.Splits[0].DisplayColumns[MTR_MRPCycleOptionDetailTable.ONHAND_FLD].Style.HorizontalAlignment = AlignHorzEnum.Center;
				dgrdData.Splits[0].DisplayColumns[MTR_MRPCycleOptionDetailTable.DEMANDWO_FLD].DataColumn.ValueItems.Presentation  = PresentationEnum.CheckBox;
				dgrdData.Splits[0].DisplayColumns[MTR_MRPCycleOptionDetailTable.DEMANDWO_FLD].Style.HorizontalAlignment = AlignHorzEnum.Center;
				dgrdData.Splits[0].DisplayColumns[MTR_MRPCycleOptionDetailTable.PURCHASEORDER_FLD].DataColumn.ValueItems.Presentation  = PresentationEnum.CheckBox;
				dgrdData.Splits[0].DisplayColumns[MTR_MRPCycleOptionDetailTable.PURCHASEORDER_FLD].Style.HorizontalAlignment = AlignHorzEnum.Center;
				dgrdData.Splits[0].DisplayColumns[MTR_MRPCycleOptionDetailTable.SALEORDER_FLD].DataColumn.ValueItems.Presentation  = PresentationEnum.CheckBox;
				dgrdData.Splits[0].DisplayColumns[MTR_MRPCycleOptionDetailTable.SALEORDER_FLD].Style.HorizontalAlignment = AlignHorzEnum.Center;
				//Setting button click for MasterLocation column
				if (!pblnLock)
				{
					dgrdData.Splits[0].DisplayColumns[MASTERLOCATIONCODE].Button = true;
				}
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}
		}
		/// <summary>
		/// CreateDataSet
		/// </summary>
		private void CreateDataSet()
		{
			const string METHOD_NAME = THIS + ".CreateDataSet()";
			try
			{
				dstGridData = new DataSet();
				dstGridData.Tables.Add(MTR_MRPCycleOptionDetailTable.TABLE_NAME);
				//insert columns which is invisible but use to update
				dstGridData.Tables[MTR_MRPCycleOptionDetailTable.TABLE_NAME].Columns.Add(MTR_MRPCycleOptionDetailTable.MRPCYCLEOPTIONDETAILID_FLD);
				dstGridData.Tables[MTR_MRPCycleOptionDetailTable.TABLE_NAME].Columns.Add(MTR_MRPCycleOptionDetailTable.MRPCYCLEOPTIONMASTERID_FLD);
				dstGridData.Tables[MTR_MRPCycleOptionDetailTable.TABLE_NAME].Columns.Add(MTR_MRPCycleOptionDetailTable.MASTERLOCATIONID_FLD);
				//insert display columns
				dstGridData.Tables[MTR_MRPCycleOptionDetailTable.TABLE_NAME].Columns.Add(MASTERLOCATIONCODE);
				dstGridData.Tables[MTR_MRPCycleOptionDetailTable.TABLE_NAME].Columns.Add(MTR_MRPCycleOptionDetailTable.ONHAND_FLD);
				dstGridData.Tables[MTR_MRPCycleOptionDetailTable.TABLE_NAME].Columns.Add(MTR_MRPCycleOptionDetailTable.PURCHASEORDER_FLD);
				dstGridData.Tables[MTR_MRPCycleOptionDetailTable.TABLE_NAME].Columns.Add(MTR_MRPCycleOptionDetailTable.DEMANDWO_FLD);
				dstGridData.Tables[MTR_MRPCycleOptionDetailTable.TABLE_NAME].Columns.Add(MTR_MRPCycleOptionDetailTable.SALEORDER_FLD);
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}
		}
		/// <summary>
		/// SwitchFormMode
		/// </summary>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void SwitchFormMode()
		{
			const string METHOD_NAME = THIS + ".SwitchFormMode()";
			try
			{
				switch (formMode)
				{
					case EnumAction.Default:
						txtCycleDecription.Enabled = false;
						txtGenDateTime.Enabled = false;
						dtmToDate.Enabled = false;
						btnDelete.Enabled = false;
						btnEdit.Enabled = false;
						btnPrint.Enabled = false;
						btnSave.Enabled = false;
						btnCycleSearch.Enabled = true;
						dtmFromDate.Enabled = false;
						cboCCN.Enabled = false;
						txtMPSCycle.Enabled = false;
						btnMPSCycleSearch.Enabled = false;
						txtMPSDescription.Enabled = false;
						chkPONotReceipt.Enabled = false;
						chkReturnToVendor.Enabled = false;
						txtNumbersOfDays.Enabled = false;
						btnUpdate.Enabled = false;
						//Lock the grid
						ConfigGrid(true);	
						break;
					case EnumAction.Add:
						txtCycleDecription.Enabled = true;
						txtGenDateTime.Enabled = true;
						dtmToDate.Enabled = true;
						txtMPSCycle.Enabled = true;
						btnMPSCycleSearch.Enabled = true;
						btnDelete.Enabled = false;
						btnEdit.Enabled = false;
						btnPrint.Enabled = true;
						btnSave.Enabled = true;
						btnCycleSearch.Enabled = false;
						dtmFromDate.Enabled = true;
						cboCCN.Enabled = true;
						chkPONotReceipt.Enabled = true;
						chkReturnToVendor.Enabled = true;
						txtNumbersOfDays.Enabled = true;
						txtMPSDescription.Enabled = true;
						ConfigGrid(false);
						dgrdData.AllowDelete = true;
						break;
					case EnumAction.Edit:
						txtCycleDecription.Enabled = true;
						txtGenDateTime.Enabled = true;
						dtmToDate.Enabled = true;
						txtMPSCycle.Enabled = true;
						btnMPSCycleSearch.Enabled = true;
						btnDelete.Enabled = false;
						btnEdit.Enabled = false;
						btnPrint.Enabled = true;
						btnSave.Enabled = true;
						btnCycleSearch.Enabled = false;
						btnAdd.Enabled = false;
						dtmFromDate.Enabled = true;
						chkPONotReceipt.Enabled = true;
						chkReturnToVendor.Enabled = true;
						txtNumbersOfDays.Enabled = true;
						cboCCN.Enabled = true;
						txtMPSDescription.Enabled = true;
						ConfigGrid(false);
						dgrdData.AllowDelete = true;
						break;
				}
				
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}
		}
		/// <summary>
		/// btnAdd_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void btnAdd_Click(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnAdd_Click()";
			try
			{
				formMode = EnumAction.Add;
				ClearForm();
				SwitchFormMode();
				txtCycle.Focus();
				// Load PostDate
				MTR_MRPCycleOptionMasterVO voMTR_MRPCycleOptionMaster = new MTR_MRPCycleOptionMasterVO();
				voMTR_MRPCycleOptionMaster.AsOfDate = boUtil.GetDBDate();
				if((DateTime.MinValue < voMTR_MRPCycleOptionMaster.AsOfDate) && (voMTR_MRPCycleOptionMaster.AsOfDate < DateTime.MaxValue))
					dtmFromDate.Value = voMTR_MRPCycleOptionMaster.AsOfDate;
				else
					dtmFromDate.Value = DBNull.Value;
				//Load To Date
				DateTime dtmTempDate = boUtil.GetDBDate();
				if((DateTime.MinValue < dtmTempDate) && (dtmTempDate < DateTime.MaxValue))
					dtmToDate.Value = dtmTempDate;
				else
					dtmToDate.Value = DBNull.Value;
				//Disable Add button
				btnAdd.Enabled = false;
				//Fill data to controls
				CreateDataSet();
				dgrdData.DataSource = dstGridData.Tables[MTR_MRPCycleOptionDetailTable.TABLE_NAME];
				FormControlComponents.RestoreGridLayout(dgrdData, dtbGridLayOut);
				ConfigGrid(false);

			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		/// <summary>
		/// IsValidateData
		/// </summary>
		/// <returns></returns>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private bool IsValidateData()
		{
			//Check mandatory fields
			if (FormControlComponents.CheckMandatory(cboCCN))
			{
				PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID);
				cboCCN.Focus();
				cboCCN.Select();
				return false;
			}
			if (FormControlComponents.CheckMandatory(txtCycle))
			{
				PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID);
				txtCycle.Focus();
				txtCycle.Select();
				return false;
			}
			if (FormControlComponents.CheckMandatory(dtmFromDate))
			{
				PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID);
				dtmFromDate.Focus();
				dtmFromDate.Select();
				return false;
			}
			if (FormControlComponents.CheckMandatory(dtmToDate))
			{
				PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID);
				dtmToDate.Focus();
				dtmToDate.Select();
				return false;
			}
			if (chkPONotReceipt.Checked)
			{
				if (FormControlComponents.CheckMandatory(txtNumbersOfDays))
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID);
					txtNumbersOfDays.Focus();
					txtNumbersOfDays.Select();
					return false;
				}	
			}
			// HACK: Trada 23-11-2005
			//Check if From Date > To Date
			dtmDateOnly = new DateTime(((DateTime)dtmFromDate.Value).Year, ((DateTime)dtmFromDate.Value).Month,((DateTime)dtmFromDate.Value).Day) ;
			DateTime dtmToDateOnly = new DateTime(((DateTime)dtmToDate.Value).Year, ((DateTime)dtmToDate.Value).Month,((DateTime)dtmToDate.Value).Day) ;
			if (dtmToDateOnly <= dtmDateOnly)
			{
				PCSMessageBox.Show(ErrorCode.MESSAGE_MP_PERIODDATE, MessageBoxIcon.Warning);
				dtmToDate.Focus();
				return false;
			} // END: Trada 23-11-2005

			//Check if Master Location rows are NOT unique, raise error message 
			for (int i = 0; i < dgrdData.RowCount; i++)
			{
				for (int j = i + 1; j < dgrdData.RowCount; j++)
				{
					if (dgrdData[i, MTR_MRPCycleOptionDetailTable.MASTERLOCATIONID_FLD].ToString().Trim() == dgrdData[j, MTR_MRPCycleOptionDetailTable.MASTERLOCATIONID_FLD].ToString().Trim())
					{
						PCSMessageBox.Show(ErrorCode.MESSAGE_MPS_CYCLE_OPTION_DUPLICATE_MASTERLOCATION);
						dgrdData.Row = i;
						dgrdData.Col = dgrdData.Splits[0].DisplayColumns.IndexOf(dgrdData.Splits[0].DisplayColumns[MASTERLOCATIONCODE]);
						dgrdData.Focus();
						return false;
					}
				}
			}
			//check if row in grid has data
			int intCountRow =0;
			for (int i =0; i < dgrdData.RowCount; i++)
			{
				if (dgrdData[i, MASTERLOCATIONCODE].ToString() != string.Empty)
				{
					intCountRow++;
				}
			}
			if (intCountRow ==0)
			{
				PCSMessageBox.Show(ErrorCode.MESSAGE_PO_APPROVE_NO_DATA_IN_GRID);
				dgrdData.Row = 0;
				dgrdData.Col = dgrdData.Splits[0].DisplayColumns.IndexOf(dgrdData.Splits[0].DisplayColumns[MASTERLOCATIONCODE]);
				dgrdData.Focus();
				return false;
			}
			//check mandatory field in grid
			for (int i =0; i < dgrdData.RowCount-1; i++)
			{
				//Check MasterLocation column
				if (dgrdData[i, MASTERLOCATIONCODE].ToString() == string.Empty)
				{
					PCSMessageBox.Show(ErrorCode.MESSAGE_MATERIALRECEIPT_SELECT_MASTERLOCATION, MessageBoxIcon.Error);
					dgrdData.Row = i;
					dgrdData.Col = dgrdData.Splits[0].DisplayColumns.IndexOf(dgrdData.Splits[0].DisplayColumns[MASTERLOCATIONCODE]);
					dgrdData.Focus();
					return false;
				}
			}
			return true;
		}
		/// <summary>
		/// btnSave_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void btnSave_Click(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnSave_Click()";
			try
			{
				blnHasError = true;
				if (IsValidateData())
				{
					MRPCycleOptionBO boMRPCycleOption = new MRPCycleOptionBO();
					//Make a new MRPCycleOptionMasterVO
					MTR_MRPCycleOptionMasterVO voMTR_MRPCycleOptionMaster = new MTR_MRPCycleOptionMasterVO();
					voMTR_MRPCycleOptionMaster.CCNID = int.Parse(cboCCN.SelectedValue.ToString());
					voMTR_MRPCycleOptionMaster.AsOfDate = dtmDateOnly;
					voMTR_MRPCycleOptionMaster.Cycle = txtCycle.Text.Trim();
					voMTR_MRPCycleOptionMaster.Description = txtCycleDecription.Text.Trim();
					voMTR_MRPCycleOptionMaster.IncludedRemainPO = chkPONotReceipt.Checked;
					voMTR_MRPCycleOptionMaster.IncludedReturnToVendor = chkReturnToVendor.Checked;
					if (chkPONotReceipt.Checked)
					{
						try
						{
							voMTR_MRPCycleOptionMaster.DaysBeforeAsOfDate = Convert.ToInt32(txtNumbersOfDays.Value);
						}
						catch
						{
							voMTR_MRPCycleOptionMaster.DaysBeforeAsOfDate = 0;
						}
					}
					else
						voMTR_MRPCycleOptionMaster.DaysBeforeAsOfDate = 0;
					if ((txtMPSCycle.Tag != null)&& (txtMPSCycle.Tag.ToString() != string.Empty))
					{
						voMTR_MRPCycleOptionMaster.MPSCycleOptionMasterID = int.Parse(txtMPSCycle.Tag.ToString());
					}
					else
						voMTR_MRPCycleOptionMaster.MPSCycleOptionMasterID = 0;
					//Plan Horizon
					voMTR_MRPCycleOptionMaster.PlanHorizon = ((DateTime)dtmToDate.Value - voMTR_MRPCycleOptionMaster.AsOfDate).Days;
					voMTR_MRPCycleOptionMaster.MPSGenDate = new DateTime(2005, 1, 1);
					//Add
					if (formMode == EnumAction.Add)
					{
						//Add this new VO to MTR_MPSCycleOptionMaster Table
						pintCycleOptionMasterID = boMRPCycleOption.Add(dstGridData, voMTR_MRPCycleOptionMaster);
						voMTR_MRPCycleOptionMaster.MRPCycleOptionMasterID = pintCycleOptionMasterID;
					}
					if (formMode == EnumAction.Edit)
					{
						voMTR_MRPCycleOptionMaster.MRPCycleOptionMasterID = pintCycleOptionMasterID;
						//Update MTR_MPSCycleOptionMaster and Detail
						boMRPCycleOption.UpdateMasterAndDetail(dstGridData, voMTR_MRPCycleOptionMaster);
					}
					PCSMessageBox.Show(ErrorCode.MESSAGE_AFTER_SAVE_DATA);
					//reload grid form database
					dstGridData = boMRPCycleOption.GetDetailByMasterID(pintCycleOptionMasterID);
					dgrdData.DataSource = dstGridData.Tables[0];
					FormControlComponents.RestoreGridLayout(dgrdData, dtbGridLayOut);
					formMode = EnumAction.Default;
					txtCycle.Tag = pintCycleOptionMasterID;
					SwitchFormMode();
					dgrdData.AllowDelete = false;
					btnAdd.Enabled = true;
					btnEdit.Enabled = true;
					btnDelete.Enabled = true;	
					btnUpdate.Enabled = true;
					blnHasError = false;
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				if (ex.mCode == ErrorCode.DUPLICATE_KEY)
				{
					txtCycle.Focus();
					txtCycle.Select();
				}
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// btnEdit_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, August 12 2005</date>
		private void btnEdit_Click(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnEdit_Click()";
			try
			{
				//Switch form Mode
				formMode = EnumAction.Edit;
				SwitchFormMode();
				//set some check box
				if (!chkPONotReceipt.Checked)
				{
					chkReturnToVendor.Checked = false;
					chkReturnToVendor.Enabled = false;
					txtNumbersOfDays.Value = null;
					txtNumbersOfDays.Enabled = false;
					lblNumbersOfDays.ForeColor = Color.Black;
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// btnDelete_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, August 12 2005</date>
		private void btnDelete_Click(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnDelete_Click()";
			try
			{
				//Delete Detail and Master
				if (PCSMessageBox.Show(ErrorCode.MESSAGE_DELETE_RECORD, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
				{
					MRPCycleOptionBO boMRPCycleOption = new MRPCycleOptionBO();
					boMRPCycleOption.DeleteCycleOptionMasterAndDetail(int.Parse(cboCCN.SelectedValue.ToString()), pintCycleOptionMasterID, dstGridData);
					PCSMessageBox.Show(ErrorCode.MESSAGE_AFTER_SAVE_DATA);
					formMode = EnumAction.Default;
					ClearForm();
					CreateDataSet();
					dgrdData.DataSource = dstGridData.Tables[MTR_MRPCycleOptionDetailTable.TABLE_NAME];
					FormControlComponents.RestoreGridLayout(dgrdData, dtbGridLayOut);
					//Lock the grid
					SwitchFormMode();
					txtCycle.Focus();
				}
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}

		private void btnPrint_Click(object sender, EventArgs e)
		{
		
		}

		private void btnHelp_Click(object sender, EventArgs e)
		{
		
		}
		/// <summary>
		/// btnClose_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void btnClose_Click(object sender, EventArgs e)
		{
			this.Close();
		}
		/// <summary>
		/// btnMPSCycleSearch_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void btnMPSCycleSearch_Click(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnCycleSearch_Click()";
			try 
			{
				Hashtable htbCriteria = new Hashtable();
				DataRowView drwResult = null;
				//User has selected CCN
				if (cboCCN.SelectedIndex != -1)
				{
					htbCriteria.Add(MTR_MPSCycleOptionMasterTable.CCNID_FLD, cboCCN.SelectedValue);	
				}
				else //User has not selected CCN
				{
					htbCriteria.Add(MTR_MPSCycleOptionMasterTable.CCNID_FLD, 0);
				}
				drwResult = FormControlComponents.OpenSearchForm(MTR_MPSCycleOptionMasterTable.TABLE_NAME, MTR_MPSCycleOptionMasterTable.CYCLE_FLD, txtMPSCycle.Text.Trim(), htbCriteria, true);
				if (drwResult != null)
				{
					txtMPSCycle.Text = drwResult[MTR_MPSCycleOptionMasterTable.CYCLE_FLD].ToString();
					txtMPSDescription.Text = drwResult[MTR_MPSCycleOptionMasterTable.DESCRIPTION_FLD].ToString();
					//Keep valua of CycleOptionMasterID 
					txtMPSCycle.Tag = drwResult[MTR_MPSCycleOptionMasterTable.MPSCYCLEOPTIONMASTERID_FLD];
				}
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// MRPCycleOption_KeyDown
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void MRPCycleOption_KeyDown(object sender, KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".MRPCycleOption_KeyDown()";
			try
			{
				#region HACK: DEL Trada 10-21-2005

//				if (e.KeyCode == Keys.Escape)
//				{
//					btnClose_Click(sender, e);
//				}

				#endregion END: DEL Trada 10-21-2005

				if (e.KeyCode == Keys.F12)
				{
					if((formMode == EnumAction.Edit) || (formMode == EnumAction.Add)) 
					{
						DataRow drowNew = dstGridData.Tables[MTR_MRPCycleOptionDetailTable.TABLE_NAME].NewRow();
						dstGridData.Tables[MTR_MRPCycleOptionDetailTable.TABLE_NAME].Rows.Add(drowNew);
						dgrdData.Row = dgrdData.RowCount - 2;
						dgrdData.Col = dgrdData.Columns.IndexOf(dgrdData.Columns[MASTERLOCATIONCODE]);
						dgrdData.Focus();
					}
					dgrdData.EditActive = false;
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// dgrdData_ButtonClick
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void dgrdData_ButtonClick(object sender, ColEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_ButtonClick()";
			try
			{
				Hashtable htbCriteria = new Hashtable();
				DataRowView drwResult = null;
				if (!btnSave.Enabled) return;
				//open the search form to select Master Location
				if (dgrdData.Col == dgrdData.Columns.IndexOf(dgrdData.Columns[MASTERLOCATIONCODE]))
				{
					if (cboCCN.SelectedIndex != -1)
					{
						htbCriteria.Add(MST_MasterLocationTable.CCNID_FLD, cboCCN.SelectedValue);	
					}
					else //User has not selected CCN
					{
						htbCriteria.Add(MST_MasterLocationTable.CCNID_FLD, 0);
					}
					drwResult = FormControlComponents.OpenSearchForm(MST_MasterLocationTable.TABLE_NAME, MST_MasterLocationTable.CODE_FLD, dgrdData[dgrdData.Row, MASTERLOCATIONCODE].ToString(), htbCriteria, true);
					if (drwResult != null)
					{
						dgrdData.EditActive = true;
						//dgrdData[pintRow, PRO_ComponentScrapDetailTable.LINE_FLD] = pintRow + 1;
						dgrdData[dgrdData.Row, MASTERLOCATIONCODE] = drwResult[MST_MasterLocationTable.CODE_FLD].ToString();
						if (dgrdData.Columns[MTR_MPSCycleOptionDetailTable.MASTERLOCATIONID_FLD].Text == string.Empty)
						{
							//Set false value for all check boxes
							dgrdData[dgrdData.Row, MTR_MRPCycleOptionDetailTable.ONHAND_FLD] = false;
							dgrdData[dgrdData.Row, MTR_MRPCycleOptionDetailTable.PURCHASEORDER_FLD] = false;
							dgrdData[dgrdData.Row, MTR_MRPCycleOptionDetailTable.SALEORDER_FLD] = false;
							dgrdData[dgrdData.Row, MTR_MRPCycleOptionDetailTable.DEMANDWO_FLD] = false;

						}
						dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.MASTERLOCATIONID_FLD] = drwResult[MST_MasterLocationTable.MASTERLOCATIONID_FLD];
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// dgrdData_BeforeColUpdate
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void dgrdData_BeforeColUpdate(object sender, BeforeColUpdateEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_BeforeColUpdate()";
			try
			{
				Hashtable htbCriteria = new Hashtable();
				DataRowView drwResult = null;
				if (e.Column.DataColumn.DataField == MASTERLOCATIONCODE)
				{
					if (dgrdData.Columns[e.Column.DataColumn.DataField].Text.Trim() != string.Empty)
					{
						if (cboCCN.SelectedIndex != -1)
						{
							htbCriteria.Add(MST_MasterLocationTable.CCNID_FLD, cboCCN.SelectedValue);	
						}
						else //User has not selected CCN
						{
							htbCriteria.Add(MST_MasterLocationTable.CCNID_FLD, 0);
						}
						drwResult = FormControlComponents.OpenSearchForm(MST_MasterLocationTable.TABLE_NAME, MST_MasterLocationTable.CODE_FLD, dgrdData.Columns[e.Column.DataColumn.DataField].Text.Trim(), htbCriteria, false);
						if (drwResult != null)
						{
							e.Column.DataColumn.Tag = drwResult.Row;	
						}	
						else
						{
							e.Cancel = true;
						}
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// dgrdData_AfterColUpdate
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void dgrdData_AfterColUpdate(object sender, ColEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_AfterColUpdate()";
			try
			{
				DataRow drowResult = (DataRow) e.Column.DataColumn.Tag;
				//Fill Data to Master Location Column
				if (e.Column.DataColumn.DataField == MASTERLOCATIONCODE)
				{
					if ((e.Column.DataColumn.Tag == null) ||(dgrdData[dgrdData.Row, MASTERLOCATIONCODE].ToString() == string.Empty))
					{
						int row = dgrdData.Row;
						dgrdData[row, MTR_MPSCycleOptionDetailTable.MASTERLOCATIONID_FLD] = null;
						dgrdData[dgrdData.Row, MASTERLOCATIONCODE] = string.Empty;
					}
					else
					{
						dgrdData.EditActive = true;
						dgrdData[dgrdData.Row, MASTERLOCATIONCODE] = drowResult[MST_MasterLocationTable.CODE_FLD].ToString();
						if (dgrdData.Columns[MTR_MPSCycleOptionDetailTable.MASTERLOCATIONID_FLD].Text == string.Empty)
						{
							dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.DEMANDWO_FLD] = false;
							dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.ONHAND_FLD] = false;
							dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.PURCHASEORDER_FLD] = false;
							dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.SALEORDER_FLD] = false;
						}
						dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.MASTERLOCATIONID_FLD] = drowResult[MST_MasterLocationTable.MASTERLOCATIONID_FLD];
						return;
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// dgrdData_KeyDown
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void dgrdData_KeyDown(object sender, KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_KeyDown()";
			try
			{
				switch (e.KeyCode)
				{
					case Keys.F4:
						if (btnSave.Enabled)
						{
							dgrdData_ButtonClick(sender, null);
						}
						break;
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// txtMPSCycle_Leave
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void txtMPSCycle_Leave(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtMPSCycle_Leave()";
			try 
			{
				OnLeaveControl(sender, e);
				Hashtable htbCriteria = new Hashtable();
				DataRowView drwResult = null;
				if (!txtMPSCycle.Modified) return;
				//User has enter MasLoc
				if (cboCCN.SelectedIndex != -1)
				{
					htbCriteria.Add(MTR_MPSCycleOptionMasterTable.CCNID_FLD, cboCCN.SelectedValue);	
				}
				else //User has not selected CCN
				{
					htbCriteria.Add(MTR_MPSCycleOptionMasterTable.CCNID_FLD, 0);
				}
				if (txtMPSCycle.Text != string.Empty)
				{
					drwResult = FormControlComponents.OpenSearchForm(MTR_MPSCycleOptionMasterTable.TABLE_NAME, MTR_MPSCycleOptionMasterTable.CYCLE_FLD, txtMPSCycle.Text.Trim(), htbCriteria, false);
					if (drwResult != null)
					{
						txtMPSCycle.Text = drwResult[MTR_MPSCycleOptionMasterTable.CYCLE_FLD].ToString();
						//Keep valua of CycleOptionMasterID 
						txtMPSCycle.Tag = drwResult[MTR_MPSCycleOptionMasterTable.MPSCYCLEOPTIONMASTERID_FLD];
					}
					else
						txtCycle.Focus();
				}
				else
					txtMPSCycle.Tag = null;
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// txtMPSCycle_KeyDown
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void txtMPSCycle_KeyDown(object sender, KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtMPSCycle_KeyDown()";
			if (e.KeyCode == Keys.F4)
			{
				btnMPSCycleSearch_Click(sender, e);	
			}
		}
		/// <summary>
		/// FillDataGrid
		/// </summary>
		/// <param name="pintCycleOptionMasterID"></param>
		/// <author>Trada</author>
		/// <date>Friday, August 12 2005</date>
		private void FillDataGrid(int pintCycleOptionMasterID)
		{
			const string METHOD_NAME = THIS + ".FillDataGrid()";
			try
			{
				int intPlanHorizon = 0;
				MRPCycleOptionBO boMRPCycleOption = new MRPCycleOptionBO();
				//Get data from CycleOptionMaster
				DataTable dtbMRPCycleOptionMaster = boMRPCycleOption.GetCycleOptionMaster(pintCycleOptionMasterID);
				//Fill Data to all controls
				if (dtbMRPCycleOptionMaster.Rows.Count > 0)
				{
					txtCycleDecription.Text = dtbMRPCycleOptionMaster.Rows[0][MTR_MRPCycleOptionMasterTable.DESCRIPTION_FLD].ToString();
					if (dtbMRPCycleOptionMaster.Rows[0][MTR_MRPCycleOptionMasterTable.INCLUDEDREMAINPO_FLD] != DBNull.Value)
					{
						chkPONotReceipt.Checked = Convert.ToBoolean(dtbMRPCycleOptionMaster.Rows[0][MTR_MRPCycleOptionMasterTable.INCLUDEDREMAINPO_FLD]);
					}
					if (chkPONotReceipt.Checked) lblNumbersOfDays.ForeColor = Color.Maroon;
					else lblNumbersOfDays.ForeColor = Color.Black;
					if (dtbMRPCycleOptionMaster.Rows[0][MTR_MRPCycleOptionMasterTable.INCLUDEDRETURNTOVENDOR_FLD] != DBNull.Value)
					{
						chkReturnToVendor.Checked = Convert.ToBoolean(dtbMRPCycleOptionMaster.Rows[0][MTR_MRPCycleOptionMasterTable.INCLUDEDRETURNTOVENDOR_FLD]);
					}
					if (dtbMRPCycleOptionMaster.Rows[0][MTR_MRPCycleOptionMasterTable.DAYBEFOREASOFDATE_FLD] != DBNull.Value)
					{
						txtNumbersOfDays.Value = Convert.ToInt32(dtbMRPCycleOptionMaster.Rows[0][MTR_MRPCycleOptionMasterTable.DAYBEFOREASOFDATE_FLD]);
					}
					if ((dtbMRPCycleOptionMaster.Rows[0][MTR_MRPCycleOptionMasterTable.MPSGENDATE_FLD].ToString() != string.Empty) 
						&& ((DateTime)dtbMRPCycleOptionMaster.Rows[0][MTR_MRPCycleOptionMasterTable.MPSGENDATE_FLD] != dtmSpecialDate))
					{
						txtGenDateTime.Value = dtbMRPCycleOptionMaster.Rows[0][MTR_MRPCycleOptionMasterTable.MPSGENDATE_FLD];
					}
					else txtGenDateTime.Value = null;
					txtMPSCycle.Text = dtbMRPCycleOptionMaster.Rows[0][MPSCYCLEOPTION].ToString();
					if ((dtbMRPCycleOptionMaster.Rows[0][MTR_MRPCycleOptionMasterTable.PLANHORIZON_FLD] != null)
						&& (dtbMRPCycleOptionMaster.Rows[0][MTR_MRPCycleOptionMasterTable.PLANHORIZON_FLD] != DBNull.Value))
					{
						intPlanHorizon = int.Parse(dtbMRPCycleOptionMaster.Rows[0][MTR_MRPCycleOptionMasterTable.PLANHORIZON_FLD].ToString());
					}
					else
						intPlanHorizon = 0;
				
					dtmFromDate.Value = dtbMRPCycleOptionMaster.Rows[0][MTR_MRPCycleOptionMasterTable.ASOFDATE_FLD];
					dtmToDate.Value = ((DateTime)dtmFromDate.Value).AddDays(intPlanHorizon);
					txtMPSCycle.Tag = dtbMRPCycleOptionMaster.Rows[0][MTR_MRPCycleOptionMasterTable.MPSCYCLEOPTIONMASTERID_FLD];
				}
				//Get data from CycleOptionDetail Table by CycleOptionMasterID
				dstGridData = boMRPCycleOption.GetDetailByMasterID(pintCycleOptionMasterID);
				dgrdData.DataSource = dstGridData.Tables[0];
				//Lock grid
				for (int i =0; i <dgrdData.Splits[0].DisplayColumns.Count; i++)
				{
					dgrdData.Splits[0].DisplayColumns[i].Locked = true;
				}
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}
		}
		/// <summary>
		/// btnCycleSearch_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, August 12 2005</date>
		private void btnCycleSearch_Click(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnCycleSearch_Click()";
			try 
			{
				Hashtable htbCriteria = new Hashtable();
				DataRowView drwResult = null;
				//User has selected CCN
				if (cboCCN.SelectedIndex != -1)
				{
					htbCriteria.Add(MTR_MRPCycleOptionMasterTable.CCNID_FLD, cboCCN.SelectedValue);	
				}
				else //User has not selected CCN
				{
					htbCriteria.Add(MTR_MRPCycleOptionMasterTable.CCNID_FLD, 0);
				}
				drwResult = FormControlComponents.OpenSearchForm(MTR_MRPCycleOptionMasterTable.TABLE_NAME, MTR_MRPCycleOptionMasterTable.CYCLE_FLD, txtCycle.Text.Trim(), htbCriteria, true);
				if (drwResult != null)
				{
					txtCycle.Text = drwResult[MTR_MRPCycleOptionMasterTable.CYCLE_FLD].ToString();
					//Keep valua of CycleOptionMasterID 
					txtCycle.Tag = drwResult[MTR_MRPCycleOptionMasterTable.MRPCYCLEOPTIONMASTERID_FLD];
					pintCycleOptionMasterID = int.Parse(txtCycle.Tag.ToString());
				}
				else
				{
					txtCycle.Focus();
					return;
				}
				FillDataGrid(pintCycleOptionMasterID);
				chkReturnToVendor.Enabled = false;
				txtNumbersOfDays.Enabled = false;
				FormControlComponents.RestoreGridLayout(dgrdData, dtbGridLayOut);
				btnEdit.Enabled = true;			
				btnDelete.Enabled = true;
				btnUpdate.Enabled = true;
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// txtCycle_KeyDown
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, August 12 2005</date>
		private void txtCycle_KeyDown(object sender, KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtCycle_KeyDown()";
			if (!btnCycleSearch.Enabled)
			{
				return;
			}
			if (e.KeyCode == Keys.F4)
			{
				btnCycleSearch_Click(sender, e);	
			}
		}
		/// <summary>
		/// txtCycle_Leave
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, August 12 2005</date>
		private void txtCycle_Leave(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtCycle_Leave()";
			try 
			{
				OnLeaveControl(sender, e);
				if (!txtCycle.Modified) return;
				if (btnCycleSearch.Enabled)
				{
					if (txtCycle.Text == string.Empty)
					{
						ClearForm();
						txtCycle.Tag = null;
						CreateDataSet();
						dgrdData.DataSource = dstGridData.Tables[MTR_MRPCycleOptionDetailTable.TABLE_NAME];
						FormControlComponents.RestoreGridLayout(dgrdData, dtbGridLayOut);
						ConfigGrid(false);
						btnUpdate.Enabled = false;
						return;
					}
					Hashtable htbCriteria = new Hashtable();
					DataRowView drwResult = null;
					//User has enter MasLoc
					if (cboCCN.SelectedIndex != -1)
					{
						htbCriteria.Add(MTR_MRPCycleOptionMasterTable.CCNID_FLD, cboCCN.SelectedValue);	
					}
					else //User has not selected CCN
					{
						htbCriteria.Add(MTR_MRPCycleOptionMasterTable.CCNID_FLD, 0);
					}
					if (txtCycle.Text != string.Empty)
					{
						drwResult = FormControlComponents.OpenSearchForm(MTR_MRPCycleOptionMasterTable.TABLE_NAME, MTR_MRPCycleOptionMasterTable.CYCLE_FLD, txtCycle.Text.Trim(), htbCriteria, false);
						if (drwResult != null)
						{
							txtCycle.Text = drwResult[MTR_MRPCycleOptionMasterTable.CYCLE_FLD].ToString();
							//Keep valua of CycleOptionMasterID 
							txtCycle.Tag = drwResult[MTR_MRPCycleOptionMasterTable.MRPCYCLEOPTIONMASTERID_FLD];
							pintCycleOptionMasterID = int.Parse(txtCycle.Tag.ToString());
						}
						else
						{
							txtCycle.Focus();
							return;
						}
						FillDataGrid(pintCycleOptionMasterID);
						FormControlComponents.RestoreGridLayout(dgrdData, dtbGridLayOut);
						btnEdit.Enabled = true;			
						btnDelete.Enabled = true;
						btnUpdate.Enabled = true;
					}
				}
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// OnEnterControl
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, August 12 2005</date>
		private void OnEnterControl(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".OnEnterControl()";
			try
			{
				FormControlComponents.OnEnterControl(sender, e);
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		//**************************************************************************              
		///    <Description>
		///       OnLeaveControl
		///    </Description>
		///    <Inputs>
		///    </Inputs>
		///    <Outputs>
		///    </Outputs>
		///    <Returns>
		///       void
		///    </Returns>
		///    <Authors>
		///       Dungla
		///    </Authors>
		///    <History>
		///       Tuesday, March 29, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		private void OnLeaveControl(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".OnLeaveControl()";
			try
			{
				FormControlComponents.OnLeaveControl(sender, e);
			}
			catch (PCSException ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// MRPCycleOption_Closing
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, August 12 2005</date>
		private void MRPCycleOption_Closing(object sender, CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".MRPCycleOption_Closing()";
			try
			{
				if (formMode != EnumAction.Default)
				{
					DialogResult confirmDialog = PCSMessageBox.Show(ErrorCode.MESSAGE_QUESTION_STORE_INTO_DATABASE, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
					switch (confirmDialog)
					{
						case DialogResult.Yes:
							//Save before exit
							btnSave_Click(btnSave, new EventArgs());
							if (blnHasError)
							{
								e.Cancel = true;
							}
							break;
						case DialogResult.No:
							break;
						case DialogResult.Cancel:
							e.Cancel = true;
							break;
					}
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// dtmFromDate_TextChanged
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, Nov 24 2005</date>
		private void dtmFromDate_TextChanged(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".dtmFromDate_TextChanged()";
			try
			{
				
				if ((dtmFromDate.Value != null)&&(dtmToDate.Value != null)
					&&(dtmFromDate.Value != DBNull.Value)&&(dtmToDate.Value != DBNull.Value))
				{
					dtmDateOnly = new DateTime(((DateTime)dtmFromDate.Value).Year, ((DateTime)dtmFromDate.Value).Month,((DateTime)dtmFromDate.Value).Day) ;
					txtPlanHorizon.Value = ((DateTime)dtmToDate.Value - dtmDateOnly).Days;
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// btnProcess_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Tuesday, Feb 21 2006</date>
		private void btnProcess_Click(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnProcess_Click()";
			try
			{
				if ((txtCycle.Tag != null) && (txtCycle.Tag != DBNull.Value))
				{
					MRPRegenerationProcess frmMRPRegenerationProcess = new MRPRegenerationProcess(int.Parse(txtCycle.Tag.ToString()));	
					frmMRPRegenerationProcess.Show();
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// chkPONotReceipt_CheckedChanged
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, June 29 2006</date>
		private void chkPONotReceipt_CheckedChanged(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".chkPONotReceipt_CheckedChanged()";
			try
			{
				if (chkPONotReceipt.Checked)
				{
					chkReturnToVendor.Enabled = true;
					txtNumbersOfDays.Enabled = true;
                    lblNumbersOfDays.ForeColor = Color.Maroon;
				}
				else
				{
					chkReturnToVendor.Enabled = false;
					chkReturnToVendor.Checked = false;
					txtNumbersOfDays.Enabled = false;
					txtNumbersOfDays.Value = null;
					lblNumbersOfDays.ForeColor = Color.Black;
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		private void btnUpdate_Click(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnUpdate_Click()";
			try
			{
				Cursor = Cursors.WaitCursor;
				DataTable dtbPONotReceipt = null;
				DataTable dtbPOReceipt = null;
				DataTable dtbReturnToVendor = null;
				DataTable dtbAvailable = null;
				// list of outside item
				MRPCycleOptionBO boCycle = new MRPCycleOptionBO();
				DataTable dtbItemList = boCycle.ListOutsideItem();
				DateTime dtmServerDate = boUtil.GetDBDate();
				DateTime dtmAsOfDate = (DateTime)dtmFromDate.Value;
				DateTime dtmBeginMonth = new DateTime(dtmServerDate.Year, dtmServerDate.Month, 1);
				int intNumOfDay = 0;
				try
				{
					intNumOfDay = Convert.ToInt32(txtNumbersOfDays.Value);
				}
				catch{}
				DateTime dtmBeginDate = dtmBeginMonth.AddDays(intNumOfDay);
				if (chkPONotReceipt.Checked)
				{
					MRPRegenerationProcessBO boMRP = new MRPRegenerationProcessBO();
					dtbPONotReceipt = boMRP.GetPONotReceipt(dtmBeginDate, dtmBeginMonth, CCNID);
					dtbPOReceipt = boMRP.GetPOReceipt(dtmBeginDate, dtmBeginMonth, CCNID);
					if (chkReturnToVendor.Checked)
						dtbReturnToVendor = boMRP.GetReturnToVendor(dtmBeginDate, dtmBeginMonth);
				}
				StringBuilder strSQLItems = BuildSQLIN(dtbItemList);
				DataTable dtbBeginForNIGURI = boCycle.GetBeginMRP(dtmAsOfDate);
				DataRow drowMasLocInfo = dstGridData.Tables[0].Rows[0];
				int intMasLocID = Convert.ToInt32(drowMasLocInfo[MST_MasterLocationTable.MASTERLOCATIONID_FLD]);
				if (Convert.ToBoolean(drowMasLocInfo[MTR_MRPCycleOptionDetailTable.ONHAND_FLD]))
					dtbAvailable = boCycle.GetAvailableQuantityForPlan(dtmBeginMonth);
				
				DataTable dtbItemsReplenishPrevious = boCycle.getAllReleasePOForItems(strSQLItems, dtmBeginMonth, dtmAsOfDate, intMasLocID);
				DataTable dtbSO = boCycle.getAllReleaseSOForItems(strSQLItems, dtmBeginMonth, dtmAsOfDate, intMasLocID);
				DataTable dtbCPO = boCycle.getAllCPOForItems(strSQLItems, dtmBeginMonth, dtmAsOfDate, intMasLocID);
				
				foreach (DataRow drowItem in dtbItemList.Rows)
				{
					string strProductID = drowItem[ITM_ProductTable.PRODUCTID_FLD].ToString();
					
					decimal decLocationQuantity = 0;
					try
					{
						decLocationQuantity += Convert.ToDecimal(dtbAvailable.Compute("SUM(" + Constants.SUPPLY_QUANTITY_FLD + ")",
							ITM_ProductTable.PRODUCTID_FLD + "=" + strProductID
							+ " AND " + ITM_ProductTable.LOCATIONID_FLD + "=" + drowItem[ITM_ProductTable.LOCATIONID_FLD].ToString()));
					}
					catch{}

					decimal decAvailable = 0, decAvailableNIGURY = 0;
					if (drowMasLocInfo[MTR_MRPCycleOptionDetailTable.ONHAND_FLD].ToString() == true.ToString())
					{
						decAvailable = GetAllRemainBeforeRun(Convert.ToInt32(strProductID), dtbSO, dtbCPO, dtbItemsReplenishPrevious);
						decAvailableNIGURY = decAvailable;

						try
						{
							decAvailable -= (decimal)drowItem[ITM_ProductTable.SAFETYSTOCK_FLD];
						}
						catch{}
							

						decLocationQuantity += decAvailableNIGURY;
						DataRow[] drowAvaiItems;
						if (dtbAvailable.Rows.Count > 0)
							drowAvaiItems = dtbAvailable.Select(ITM_ProductTable.PRODUCTID_FLD + "=" + strProductID);
						else
							drowAvaiItems = new DataRow[0];
						if (drowAvaiItems.Length > 0)
						{
							try
							{
								decAvailable += Convert.ToDecimal(dtbAvailable.Compute("SUM(" + Constants.SUPPLY_QUANTITY_FLD + ")",
									ITM_ProductTable.PRODUCTID_FLD + "=" + strProductID));
								decAvailableNIGURY += Convert.ToDecimal(dtbAvailable.Compute("SUM(" + Constants.SUPPLY_QUANTITY_FLD + ")",
									ITM_ProductTable.PRODUCTID_FLD + "=" + strProductID));
							}
							catch{}
						}
					}

					decimal decPONotReceipt = 0, decReturnToVendor = 0;
					if (chkPONotReceipt.Checked)
					{
						string strFilter = "MasterLocationID = " + intMasLocID + " AND ProductID = " + strProductID;
						try
						{
							decPONotReceipt = Convert.ToDecimal(dtbPOReceipt.Compute("SUM(Quantity)", strFilter));
						}
						catch{}
						try
						{
							decPONotReceipt -= Convert.ToDecimal(dtbPONotReceipt.Compute("SUM(Quantity)", strFilter));
						}
						catch{}
						if (chkReturnToVendor.Checked)
						{
							try
							{
								decReturnToVendor = Convert.ToDecimal(dtbReturnToVendor.Compute("SUM(Quantity)", strFilter));
							}
							catch{}
						}
					}
					// Begin OH = OH(AsofDate) + Sum(PO.Delivery - POReceipt) - Sum(ReturnToVendor)
					decAvailable = decAvailable - decPONotReceipt - decReturnToVendor;
					decAvailableNIGURY = decAvailableNIGURY - decPONotReceipt - decReturnToVendor;
					decLocationQuantity = decLocationQuantity - decPONotReceipt - decReturnToVendor;
					DataRow[] drowsBegin = dtbBeginForNIGURI.Select(ITM_ProductTable.PRODUCTID_FLD + "=" + strProductID
						+ " AND " + ITM_ProductTable.LOCATIONID_FLD + "=" + drowItem[ITM_ProductTable.LOCATIONID_FLD].ToString()
						+ " AND " + IV_BeginMRPTable.ASOFTDATE_FLD + "='" + dtmAsOfDate.ToString("G") + "'");
					if (drowsBegin.Length > 0) // already exits, need to update new quantity
					{
						drowsBegin[0][IV_BeginMRPTable.QUANTITY_FLD] = decLocationQuantity;
						drowsBegin[0][IV_BeginMRPTable.QUANTITYMAP_FLD] = decAvailableNIGURY;
					}
					else // make a new record
					{
						DataRow drowBegin = dtbBeginForNIGURI.NewRow();
						drowBegin[IV_BeginMRPTable.ASOFTDATE_FLD] = dtmAsOfDate;
						drowBegin[IV_BeginMRPTable.LOCATIONID_FLD] = drowItem[ITM_ProductTable.LOCATIONID_FLD];
						drowBegin[IV_BeginMRPTable.PRODUCTID_FLD] = drowItem[ITM_ProductTable.PRODUCTID_FLD];
						drowBegin[IV_BeginMRPTable.QUANTITY_FLD] = decLocationQuantity;
						drowBegin[IV_BeginMRPTable.QUANTITYMAP_FLD] = decAvailableNIGURY;
						dtbBeginForNIGURI.Rows.Add(drowBegin); 
					}
				}
				boCycle.UpdateBeginMRP(dtbBeginForNIGURI);
				PCSMessageBox.Show(ErrorCode.MESSAGE_AFTER_SAVE_DATA);
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			finally
			{
				Cursor = Cursors.Default;
			}
		}
		private StringBuilder BuildSQLIN(DataTable pdtbItems)
		{
			StringBuilder strSQL = new StringBuilder();
			strSQL.Append("(");
			foreach (DataRow drowData in pdtbItems.Rows)
				strSQL.Append(drowData[ITM_ProductTable.PRODUCTID_FLD].ToString() + Constants.COMMA);
			strSQL = strSQL.Remove(strSQL.Length - 1, 1);
			strSQL.Append(")");

			return strSQL;
		}

		private decimal GetAllRemainBeforeRun(int pintProductID, DataTable pdtbSO, DataTable pdtbCPO, DataTable pdtbReplenish)
		{
			decimal decResult = 0;
			decimal decRequest = 0, decSupply = 0;
			try
			{
				decRequest = Convert.ToDecimal(pdtbSO.Compute("Sum(" + REQUEST_WO_QTITY_FLD + ")", ITM_ProductTable.PRODUCTID_FLD + "=" + pintProductID));
			}
			catch (Exception ex)
			{
				Console.Write(ex);
			}
			try
			{
				decRequest += Convert.ToDecimal(pdtbCPO.Compute("Sum(" + REQUEST_WO_QTITY_FLD + ")", ITM_ProductTable.PRODUCTID_FLD + "=" + pintProductID));
			}
			catch (Exception ex)
			{
				Console.Write(ex);
			}
			try
			{
				decSupply = Convert.ToDecimal(pdtbReplenish.Compute("Sum(" + REPLENISH_PO_QTITY_FLD + ")", ITM_ProductTable.PRODUCTID_FLD + "=" + pintProductID));
			}

			catch{}
			decResult = decSupply - decRequest;
		
			return decResult;
		}

		private void lblNumbersOfDays_Click(object sender, System.EventArgs e)
		{
		
		}

	}
}
